@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&family=Kaushan+Script&display=swap');

body {
  background-color: #0a0a0a;
  color: #c0b0b0;
  font-family: 'EB Garamond', serif;
  line-height: 1.8;
  max-width: 850px;
  font-size: 1.8rem;
  margin: auto;
  padding: 1.5em 1.5em 3em 1.5em;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("/images/background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.95;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.3);
  z-index: -1;
}

h1, h2 {
  font-family: 'Kaushan Script', serif;
  color: #992222;
  text-transform: uppercase;
  font-size: 1.8rem;
  margin-top: 2.5em;
  margin-bottom: 1em;
}

hr {
  border: none;
  border-top: 1px solid #333;
  margin: 2.5em 0;
}

em {
  font-style: italic;
  color: #a08080;
}

strong {
  color: #992222;
}

.center {
  text-align: center;
}

.site-title {
  color: #cc0000;
  font-size: 3.2rem;
  text-align: center;
  margin-top: 0.5em;
  margin-bottom: 0.3em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#menu-desktop {
  display: none;
  text-align: center;
  margin-bottom: 2.5em;
}

#menu-desktop a {
  color: #992222;
  margin: 0 1em;
  text-decoration: none;
  font-family: 'Kaushan Script', serif; 
  font-weight: bold;
  font-size: 1.6rem;
  text-transform: uppercase;
}

#menu-desktop a:hover {
  color: #cc0000;
}

#burger-button {
  position: fixed;
  color: #e0e0e0;
  top: 0;
  right: 5px;
  z-index: 1001;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

#menu-mobile {
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 40px;
  height: 100vh;
  width: 100vw;
  background-color: #000;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#menu-mobile a {
  color: #992222;
  text-decoration: none;
  font-family: 'Kaushan Script', serif; 
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
}

#menu-mobile a:hover {
  color: #cc0000;
}

#menu-mobile hr {
  border: none;
  border-top: 1px solid #333 !important;
  margin: 1em 0 !important;
  width: 80%;
}

#menu-mobile.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 1024px) {
  #burger-button, #menu-mobile {
    display: none;
  }
  #menu-desktop {
    display: block;
  }
}

.fade-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-slim {
  margin-top: 5rem;
  margin-bottom: 0;
  text-align: center;
  font-size: 1rem;
  color: #666;
}

.age-modal-backdrop {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-modal-content {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1em;
  box-sizing: border-box;
  text-align: center;
}

.age-modal-content a {
  font-size: 1.4rem;
  color: #992222;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Kaushan Script', serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.age-modal-content a:hover {
  color: #cc0000;
  text-shadow: 0 0 3px #550000;
}

@media (min-width: 1024px) {
  .age-modal-content {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: none;
    padding: 2em;
    box-sizing: border-box;
    border: 1px solid #cc0000;
    background: #1a1a1a;
    box-shadow: 0 0 20px #cc0000;
  }
  .age-modal-content a {
    font-size: 1.8rem;
  }
}

.age-modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #cc0000;;
}

.age-buttons button {
  background: #992222;
  color: white;
  border: none;
  padding: 0.8em 1.5em;
  margin: 0.5em;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.age-buttons button:hover {
  background: #dd3333;
}

.fade-out {
  animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.96);
  }
}

.gallery-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
  justify-items: center;
}

@media (min-width: 1024px) {
  .gallery-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 100%;
  text-align: center;
}

.gallery-card img {
  width: 100%;
  border-radius: 0.5em;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-card h2 {
  margin-top: 0.6em;
  font-size: 1.4rem;
  color: #992222;
  text-transform: uppercase;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .gallery-card h2 {
    font-size: 1.1rem;
  }
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
  margin-top: 2em;
}

@media (min-width: 1024px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-grid img {
  width: 100%;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}

.photo-grid img:hover {
  transform: scale(1.03);
  cursor: zoom-in;
}

.photo-grid a:hover img {
  transform: scale(1.03);
  cursor: zoom-in;
}

.pswp__img {
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: none !important;
}

.pswp__img--placeholder {
  visibility: hidden;
}
