/* ==========================================================================
   GALLERY PAGE STYLES (1:1 Exact Match with Live Reference)
   ========================================================================== */

/* --- 1. BANNER --- */
.gallery-hero-banner {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 100px 0;
  text-align: center;
  width: 100%;
}

.gallery-hero-banner-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: #000000;
  opacity: 0.5;
}

.gallery-hero-banner .container {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.gallery-hero-title {
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 45px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.2;
}

.gallery-hero-breadcrumbs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #FFFFFF;
  font-size: 16px;
  font-family: "Roboto", sans-serif;
}

.gallery-hero-breadcrumbs a {
  color: #FFFFFF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.gallery-hero-breadcrumbs a:hover {
  opacity: 0.8;
}

.gallery-hero-breadcrumbs .sep {
  opacity: 0.7;
}

.gallery-hero-breadcrumbs .active {
  color: #FFFFFF;
  font-weight: 500;
}

/* --- 2. GALLERY GRID --- */
.gallery-section {
  padding: 80px 0 100px 0;
  background-color: #FFFFFF;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gallery-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-card-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid #E6E6E6;
  background-color: #FAFAFA;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.gallery-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-card-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s ease;
}

.gallery-zoom-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #8A211B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.3s ease;
}

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

.gallery-card-item:hover .gallery-card-overlay {
  background-color: rgba(0, 0, 0, 0.45);
}

.gallery-card-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox Modal */
.gallery-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gallery-modal.active {
  display: flex;
}

.gallery-modal-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.gallery-modal-close {
  position: absolute;
  top: 25px;
  right: 30px;
  color: #FFFFFF;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}

.gallery-modal-close:hover {
  color: #E84C3D;
}

@media (max-width: 992px) {
  .gallery-grid-4col {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .gallery-grid-4col {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .gallery-hero-title {
    font-size: 32px;
  }
  .gallery-hero-banner {
    padding: 60px 0;
  }
}
