* { 
    box-sizing: border-box; 
  }

  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body.site-wrapper {
  font-family: "Cormorant Garamond", serif;
  background-size: cover; 
  background-attachment: fixed; 
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #241710;
}

.container-main-1 {
  margin: 0;
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-1{
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
}

.container-logo-1 {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  background-color: #281C16;
  padding: 0.7rem;
}

.logo-link-1 {
  text-align: center;
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 1.5vw, 3rem);
  color: #C0B7AC;
  padding: 0.5rem 1rem;
}

.main-header {
  position: sticky; 
  display: flex;
  flex-direction: column;
  align-items: center; 
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.8rem 1rem;
  margin-top: 0;
  background-color: #967f5cf5;
  background-size: cover; 
  background-position: top center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  -webkit-mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
}

.logo-text {
  text-decoration: none;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #281C16;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.main-nav {
  display: flex;
  gap: 2.0rem;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.0rem;
}

.nav-links a {
  text-decoration: none;
  color: #281C16;
  font-size: 1.5rem;
  transition: opacity 0.3s, border-bottom 0.3s;
  border-bottom: 2px solid transparent; 
  padding-bottom: 5px;
}

.nav-links a:hover {
  opacity: 0.6;
  border-bottom: 2px solid rgba(40, 28, 22, 0.3);
}

.nav-links a.active {
    border-bottom: 2px solid rgba(40, 28, 22, 0.5);
    padding-bottom: 5px;
    opacity: 1;
    font-weight: 500;
}

.social-icons a {
  display: flex; 
  line-height: 0;
}

.social-icons img {
  width: 24px;         
  height: auto;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

.content-area {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
}

.slideshow-container {
  width: 100%;
  max-width: 1600px;
  height: 85vh; 
  min-height: 85vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
}

/* Hide slides by default */
.mySlides {
  display: none;
  opacity: 0;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* Smooth fading animation */
.fade {
  animation: fadeEffect 0.75s ease-in-out forwards;
}

@keyframes fadeEffect {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-content {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
  line-height: 0;
  box-shadow: 0 20px 30px rgba(0,0,0,0.3);
  border: 1px rgba(255,255,255,.08);
  overflow: hidden; 
}

.slide-content:hover .arrow {
  opacity: 1;
}

.slide-content img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
}

/* Navigation Arrows */
.arrow {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 14px 18px;
  color: rgba(220, 220, 220, 0.5);
  font-size: 24px;
  background-color: rgba(0, 0, 0, 0.1);
  border: none;
  z-index: 10;
  opacity: 0;
  transition: all 0.4s ease-in-out;
}

.arrow:hover { 
  background: rgba(50, 50, 50, 0.75);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(50, 50, 50, 0.3);
 }

.next { right: 0; border-radius: 3px 0 0 3px;}

.prev { left: 0; border-radius: 0 3px 3px 0;}

.main-footer {
  text-align: center;
  padding: 20px;
  font-size: 1.3rem;
  color: #C0B7AC;
}

/* Gallery Container */
.gallery-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* The Grid System */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 Columns wide */
  gap: 20px; /* Space between images */
}

/* Individual Gallery Item */
.gallery-item {
  opacity: 0;
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  /* background-color: #e0e0e0; Fallback background */
  aspect-ratio: 4 / 5; /* Forces a consistent vertical art ratio */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item.entrance {
  animation: galleryFadeIn 1.0s ease-out forwards;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Change to 'contain' if you don't want any cropping */
  transition: transform 0.5s ease;
}

/* Hover Overlay */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(40, 28, 22, 0.85); /* Matches your dark brand color */
  color: #C0B7AC; /* Matches your text color */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.4s ease;
  padding: 20px;
  text-align: center;
  pointer-events: none;
}

/* Show overlay on hover */
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Slight zoom effect on hover */
.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery-caption p {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1rem;
}

.modal-overlay {
  display: flex; /* Hidden by default */
  position: fixed;
  z-index: 2000; /* Higher than your sticky header (1000) */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75); /* Darkens the background */
  backdrop-filter: blur(5px); /* Optional: adds a slight blur to the site behind */
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none; 
  transition: opacity 0.4s, visibility 0.5s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 2. The Pop-up Image Container */
.modal-content {
  position: relative;
  max-width: 1600px; /* Same as your slideshow */
  width: 90%;
  height: 85vh;      /* Same as your slideshow */
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.modal-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain; /* Ensures art is not cropped */
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: default; 
  pointer-events: auto;
  cursor: default;
}

/* 3. Close Button (Optional 'X' in top corner) */
.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* State when Modal is Open */
.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.info-page-main {
  flex: 1;
  display: flex;
  justify-content: center; 
  align-items: center;     
  padding: 40px 20px;
}

.about-container {
  background-color: #967f5cf5;
  max-width: 800px;
  width: 100%;
  padding: 60px 40px;
  border-radius: 2px; 
  box-shadow: 0 20px 30px rgba(0,0,0,0.3);
  border: 1px rgba(255,255,255,.08)
}

.about-content h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  color: #281C16;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.divider {
  width: 60px;
  height: 1px;
  background-color: #281C16;
  margin: 0 auto 30px auto;
}

.about-content p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  line-height: 1.8; 
  color: #1b130f;
  margin-bottom: 20px;
  text-align: justify; 
  text-justify: inter-word;
}

/* RESPONSIVE: Tablet (2 columns) */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* RESPONSIVE: Mobile (1 column) */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-overlay {
    opacity: 1; /* Always show captions on mobile since there is no 'hover' */
    background: rgba(40, 28, 22, 0.4);
    height: auto;
    top: auto;
    bottom: 0;
    padding: 10px;
  }
  
  .gallery-caption h3 { font-size: 1.2rem; }
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .slideshow-container {
    height: 60vh; /* Shorter on mobile */
  }

  .logo-text {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
    .about-container {
        padding: 40px 20px; /* Less padding on small screens */
    }

    .about-content h1 {
        font-size: 2rem;
    }

    .about-content p {
        font-size: 1.1rem;
        text-align: left; /* Justified text can look weird on very narrow screens */
    }
}

@media (max-width: 768px) {
  .arrow {
    opacity: 1; /* Always show arrows on mobile */
    background-color: rgba(255, 255, 255, 0.6); /* More visible */
    width: 40px;
    height: 40px;
  }
}