/* ============================================
   ARCHIVE.CSS - Digital Archive Page
   Fully Responsive for All Devices
   ============================================ */

/* 1️⃣ HERO BANNER SECTION */
.archive-hero {
  height: 85vh;
  min-height: 700px;
  background: linear-gradient(105deg, rgba(13, 47, 91, 0.85) 0%, rgba(28, 63, 115, 0.8) 100%), url('../img/gallery/1.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.archive-hero .container {
  position: relative;
  z-index: 2;
}

.archive-hero h1 {
  font-size: 5rem;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 2rem;
}

.archive-hero .text-gold {
  color: #e0b45c !important;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-text {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 500;
}

.scroll-indicator i {
  font-size: 1.2rem;
  color: #e0b45c;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-15px);
  }
  60% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* 2️⃣ GALLERY SECTION */
.gallery-section {
  background: #f8f5f0;
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  aspect-ratio: 1 / 0.8;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 47, 91, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay i {
  font-size: 2.5rem;
  color: #e0b45c;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.close-lightbox {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.close-lightbox:hover {
  color: #e0b45c;
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 1.5rem;
}

.lightbox-nav:hover {
  background: #e0b45c;
  color: #0D2F5B;
}

.prev-btn {
  left: -70px;
}

.next-btn {
  right: -70px;
}

/* Global Styles */
.section-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: #c89b3c;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #c89b3c, #e0b45c, #c89b3c);
  border-radius: 2px;
  margin: 0 auto 1.2rem;
}

.text-gold {
  color: #e0b45c !important;
}

.text-navy {
  color: #0D2F5B !important;
}

section {
  scroll-margin-top: 100px;
}

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

/* Responsive */
@media (max-width: 1200px) {
  .archive-hero h1 {
    font-size: 4rem;
  }
  .prev-btn {
    left: -50px;
  }
  .next-btn {
    right: -50px;
  }
}

@media (max-width: 991px) {
  .archive-hero {
    height: 80vh;
    min-height: 600px;
  }
  .archive-hero h1 {
    font-size: 3rem;
  }
  .display-5 {
    font-size: 2rem;
  }
  .gallery-section {
    padding: 60px 0;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .prev-btn {
    left: -30px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .next-btn {
    right: -30px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 767px) {
  .archive-hero {
    height: 70vh;
    min-height: 500px;
  }
  .archive-hero h1 {
    font-size: 2.2rem;
  }
  .display-5 {
    font-size: 1.5rem;
  }
  .section-eyebrow {
    font-size: 0.6rem;
  }
  .gallery-section {
    padding: 50px 0;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
  }
  .scroll-text {
    font-size: 0.7rem;
  }
  .gold-line {
    width: 50px;
  }
  .prev-btn {
    left: -20px;
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  .next-btn {
    right: -20px;
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  .close-lightbox {
    top: -30px;
    font-size: 1.5rem;
  }
}

@media (max-width: 575px) {
  .archive-hero h1 {
    font-size: 1.8rem;
  }
  .display-5 {
    font-size: 1.3rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .prev-btn {
    left: -15px;
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  .next-btn {
    right: -15px;
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .archive-hero h1 {
    font-size: 1.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}