:root {
  --color-bg: #cc0000;
  --color-orange: #ffa500;
  --color-gold: #f0d197;
  --color-text: #000;
  --color-link-visited: #371c00;
  --color-desc: #996600;
  --font-main: Verdana, sans-serif;
  --site-width: 710px;
  --content-width: 680px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 8pt;
}

body {
  font-family: var(--font-main);
  font-size: 8pt;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: var(--color-text);
}

a:visited {
  color: var(--color-link-visited);
}

a:hover {
  color: var(--color-link-visited);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.site-wrapper {
  max-width: var(--site-width);
  margin: 0 auto;
  background-color: var(--color-orange);
}

/* Header */
.site-header {
  text-align: center;
}

.site-header .logo {
  display: block;
  width: 100%;
  max-width: var(--site-width);
  height: auto;
}

.main-nav {
  padding: 4px 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.main-nav a {
  font-size: 9pt;
  font-family: var(--font-main);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  white-space: nowrap;
  color: #553300;
  background: linear-gradient(180deg, #e8a020 0%, #cc7700 50%, #884400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0px 1px 0px rgba(0,0,0,0.3));
}

.main-nav a:visited {
  color: #553300;
  -webkit-text-fill-color: transparent;
}

.main-nav a:hover {
  filter: drop-shadow(0px 1px 0px rgba(0,0,0,0.5));
  text-decoration: underline;
  -webkit-text-fill-color: #442200;
  background: none;
}

.main-nav a.active {
  -webkit-text-fill-color: #442200;
  background: none;
  text-decoration: underline;
  filter: drop-shadow(0px 1px 0px rgba(0,0,0,0.4));
}

.nav-separator {
  height: 8px;
  margin: 0 15px;
  background-color: var(--color-gold);
  background-image: url('../../grafika/header/RA_bunka69.gif');
  background-repeat: repeat-x;
}

/* Content area */
.content {
  background-color: var(--color-gold);
  margin: 0 15px;
  padding: 15px;
  overflow-wrap: break-word;
}

/* Footer */
.footer-separator {
  height: 8px;
  margin: 0 15px;
  background-color: var(--color-gold);
  background-image: url('../../grafika/header/RA_bunka96.gif');
  background-repeat: repeat-x;
}

.site-footer {
  padding: 8px 15px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 4px;
  font-size: 8pt;
}

.footer-nav .sep {
  color: var(--color-text);
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 8pt;
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.lang-btn.active {
  text-decoration: none;
  font-weight: bold;
  cursor: default;
}

/* Language switching */
[data-lang="en"] {
  display: none;
}

body.lang-en [data-lang="de"] {
  display: none;
}

body.lang-en [data-lang="en"] {
  display: inline;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-item {
  text-align: center;
  padding-bottom: 20px;
}

.gallery-item a {
  display: inline-block;
}

.gallery-item img {
  max-width: 150px;
  height: auto;
  border: 0;
}

.gallery-item .title {
  margin-top: 6px;
}

.gallery-item .desc {
  color: var(--color-desc);
}

/* Pagination */
.pagination {
  text-align: center;
  padding: 10px 0;
  font-weight: bold;
}

.pagination a,
.pagination span {
  margin: 0 2px;
}

.pagination .current {
  text-decoration: none;
  cursor: default;
}

/* Content pages */
.page-content {
  text-align: center;
}

.page-content.text-page {
  text-align: justify;
  padding: 0 15px;
}

.page-content.text-page img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.page-bio-photo {
  max-width: 460px;
  width: 100%;
  height: auto;
}

.page-press-photo {
  max-width: 400px;
  width: 100%;
  height: auto;
}

/* Exhibition list */
.exhibition-list {
  text-align: center;
}

.exhibition-list .exhibition-entry {
  margin-bottom: 4px;
}

.exhibition-list .exhibition-entry i {
  font-style: italic;
}

.exhibition-list .exhibition-img {
  max-width: 500px;
  width: 100%;
  margin: 8px 0;
}

/* Media page */
.media-section {
  text-align: left;
  padding-left: 40px;
}

.media-section h3 {
  font-size: 8pt;
  font-weight: normal;
  margin: 12px 0 8px;
  letter-spacing: 1px;
}

.media-section .media-item {
  margin-bottom: 4px;
}

.media-section .media-item img {
  width: 16px;
  height: auto;
  vertical-align: middle;
}

/* Contact page */
.contact-content {
  text-align: center;
}

.contact-content .social-links {
  margin: 10px 0;
}

.contact-content .social-links a {
  display: inline-block;
  margin: 0 2px;
}

.contact-content .social-links img {
  width: 24px;
  height: 25px;
}

.contact-links {
  margin: 10px 0;
}

.contact-disclaimer {
  text-align: justify;
  font-size: 6pt;
  font-style: italic;
  color: var(--color-desc);
  padding: 8px 40px;
}

/* Landing page */
.landing {
  background-color: var(--color-bg);
  background-image: url('../../grafika/header/Rebel.Art_pyramidy_bg.gif');
  background-repeat: repeat;
  text-align: center;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

.landing .social-bar {
  text-align: right;
  padding: 8px 15px;
}

.landing .social-bar a {
  display: inline-block;
  margin: 0 1px;
}

.landing .social-bar img {
  width: auto;
  height: 25px;
}

.landing .enter-img {
  display: block;
  margin: 0 auto;
  max-width: 700px;
  width: 100%;
}

.landing .promo {
  margin: 20px auto;
  max-width: 500px;
}

.landing .promo img {
  width: 100%;
  height: auto;
}

/* Image lightbox overlay */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 740px) {
  .site-wrapper {
    max-width: 100%;
  }

  .content {
    margin: 0 8px;
    padding: 10px;
  }

  .nav-separator,
  .footer-separator {
    margin: 0 8px;
  }

  .site-footer {
    padding: 8px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    padding: 4px 8px;
    gap: 2px;
    justify-content: center;
  }

  .main-nav a {
    padding: 2px 4px;
    font-size: 7pt;
  }

  .page-content.text-page {
    padding: 0 5px;
  }

  .media-section {
    padding-left: 10px;
  }

  .contact-disclaimer {
    padding: 8px 10px;
  }
}

@media (max-width: 400px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    max-width: 200px;
  }
}
