/* =========================================
   GALLERY PAGE
========================================= */

.gallery-section {
  position: relative;
  padding: 70px 0 90px;
  background: #fff9f7;
  overflow: hidden;
  margin-top: -40px;
}


/* =========================================
   BACKGROUND GLOW
========================================= */

.gallery-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.gallery-glow-one {
  width: 380px;
  height: 380px;
  top: -190px;
  right: -120px;
  background: rgba(122, 47, 53, 0.07);
  animation: galleryGlowFloat 8s ease-in-out infinite;
}

.gallery-glow-two {
  width: 300px;
  height: 300px;
  left: -130px;
  bottom: -150px;
  background: rgba(79, 167, 160, 0.06);
  animation: galleryGlowFloat 10s ease-in-out infinite reverse;
}


/* =========================================
   TOP BAR
========================================= */

.gallery-top-bar {
  position: relative;
  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 60px;
}

.gallery-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 11px 20px;

  border: 1px solid rgba(122, 47, 53, 0.18);
  border-radius: 50px;

  background: rgba(255, 255, 255, 0.75);

  color: #5d0039;

  text-decoration: none;

  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;

  transition: all 0.35s ease;
}

.gallery-back-btn i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.gallery-back-btn:hover {
  background: #5d0039;
  color: #ffffff;
  transform: translateX(-4px);
}

.gallery-back-btn:hover i {
  transform: translateX(-4px);
}

.gallery-label {
  color: #5d0039;

  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;

  letter-spacing: 3px;
}

.gallery-label i {
  margin-right: 6px;
}


/* =========================================
   INTRO
========================================= */

.gallery-intro {
  position: relative;
  z-index: 2;

  max-width: 850px;

  margin: 0 auto 55px;
}

.gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #5d0039;

  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;

  letter-spacing: 3px;

  animation: galleryReveal 0.8s ease both;
}

.gallery-title {
  margin: 16px 0 18px;

  color: #3f2524;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(52px, 7vw, 82px);
  font-weight: 600;

  line-height: 0.95;

  animation: galleryReveal 0.9s ease 0.1s both;
}

.gallery-title span {
  display: block;
  color: #5d0039;
}

.gallery-line {
  width: 65px;
  height: 3px;

  margin: 25px auto;

  border-radius: 5px;

  background: #5d0039;

  animation: galleryLineGrow 0.9s ease 0.4s both;
}

.gallery-description {
  max-width: 720px;

  margin: 0 auto;

  color: #555;

  font-family: "Montserrat", sans-serif;
  font-size: 18px;

  line-height: 1.8;

  animation: galleryReveal 0.9s ease 0.2s both;
}


/* =========================================
   GALLERY GRID
========================================= */

.gallery-row {
  position: relative;
  z-index: 2;
}


/* =========================================
   GALLERY CARD
========================================= */

.gallery-card {
  position: relative;

  display: block;

  width: 100%;
  height: 350px;

  overflow: hidden;

  border-radius: 30px;

  background: #f3f5ec;

  box-shadow:
    0 20px 45px rgba(74, 43, 40, 0.11);

  text-decoration: none;

  animation: galleryCardReveal 0.8s ease both;
}


/* IMAGE */

.gallery-card img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform 0.8s ease;
}


/* DARK OVERLAY */

.gallery-card::after {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(45, 25, 24, 0.80),
    rgba(45, 25, 24, 0.15) 55%,
    transparent
  );

  opacity: 0;

  transition: opacity 0.4s ease;
}


/* HOVER IMAGE */

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card:hover::after {
  opacity: 1;
}


/* =========================================
   OVERLAY CONTENT
========================================= */

.gallery-overlay {
  position: absolute;

  left: 22px;
  right: 22px;
  bottom: 20px;

  z-index: 3;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 15px;

  opacity: 0;

  transform: translateY(20px);

  transition: all 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}


/* CATEGORY */

.gallery-content span {
  display: block;

  margin-bottom: 5px;

  color: #f0d8d6;

  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;

  letter-spacing: 2px;
  text-transform: uppercase;
}


/* TITLE */

.gallery-content h3 {
  margin: 0;

  color: #ffffff;

  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 600;

  line-height: 1.1;
}


/* =========================================
   VIEW ICON
========================================= */

.gallery-icon {
  width: 46px;
  height: 46px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #ffffff;

  color: #5d0039;

  font-size: 18px;

  transition: all 0.35s ease;
}

.gallery-card:hover .gallery-icon {
  transform: scale(1.08) rotate(8deg);
}

.gallery-icon:hover {
  background: #5d0039;
  color: #ffffff;
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes galleryReveal {

  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


@keyframes galleryCardReveal {

  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


@keyframes galleryLineGrow {

  from {
    width: 0;
  }

  to {
    width: 65px;
  }

}


@keyframes galleryGlowFloat {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(20px, 25px);
  }

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

  .gallery-section {
    padding: 60px 0 80px;
  }

  .gallery-top-bar {
    margin-bottom: 45px;
  }

  .gallery-card {
    height: 320px;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {

  .gallery-section {
    padding: 45px 0 65px;
  }

  .gallery-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .gallery-back-btn span {
    display: none;
  }

  .gallery-back-btn {
    width: 44px;
    height: 44px;

    padding: 0;

    justify-content: center;
  }

  .gallery-label {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .gallery-intro {
    margin-bottom: 40px;
  }

  .gallery-title {
    font-size: 50px;
  }

  .gallery-description {
    font-size: 15px;
    line-height: 1.75;
  }

  .gallery-card {
    height: 290px;
    border-radius: 23px;
  }

  .gallery-overlay {
    left: 17px;
    right: 17px;
    bottom: 17px;
  }

  .gallery-content h3 {
    font-size: 24px;
  }

  .gallery-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

  .gallery-glow-one,
  .gallery-glow-two,
  .gallery-eyebrow,
  .gallery-title,
  .gallery-description,
  .gallery-card {
    animation: none;
  }

  .gallery-card img,
  .gallery-overlay,
  .gallery-icon,
  .gallery-back-btn {
    transition: none;
  }

}

/* Gallery CTA */

.gallery-cta-section {
  padding: 60px 0;
  background: #fff9f7;
}

.gallery-cta {
  padding: 55px 30px;
  background: #5d0039;
  border-radius: 30px;
}

.gallery-cta-label {
  color: #f0d8d6;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
}

.gallery-cta h2 {
  margin: 15px auto;
  max-width: 700px;

  color: #ffffff;
  font-family: "Cormorant Garamond", serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.05;
}

.gallery-cta p {
  margin: 0 auto 25px;
  color: rgba(255, 255, 255, 0.8);

  font-family: "Montserrat", sans-serif;
  font-size: 15px;
}

.gallery-cta-btn {
  display: inline-block;
  padding: 13px 25px;

  background: #ffffff;
  color: #5d0039;

  border-radius: 50px;

  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;

  transition: 0.3s ease;
}

.gallery-cta-btn:hover {
  background: #f3f5ec;
  color: #5d0039;
  transform: translateY(-2px);
}

@media (max-width: 576px) {

  .gallery-cta-section {
    padding: 45px 0;
  }

  .gallery-cta {
    padding: 45px 20px;
    border-radius: 24px;
  }

  .gallery-cta h2 {
    font-size: 40px;
  }

  .gallery-cta p {
    font-size: 14px;
    line-height: 1.7;
  }

}