* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* =====================================================
   PREMIUM WEDDING GALLERY
===================================================== */

.premium-gallery {
  --pink-deep: #8d304d;
  --pink: #c75c79;
  --pink-light: #efa0b5;
  --pink-soft: #f9d8e1;
  --cream: #fff9f7;
  --text: #612f40;

  background: linear-gradient(180deg, #fff9f7 0%, #fff4f6 100%);

  color: var(--text);

  overflow: hidden;
}

/* =====================================================
   HERO
===================================================== */

.gallery-hero {
  height: min(780px, 92vh);

  min-height: 600px;

  position: relative;

  display: flex;
  align-items: center;

  overflow: hidden;

  background: #f7dce3;
}

.hero-image {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center;
}

.hero-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(72, 25, 39, 0.72) 0%,
    rgba(72, 25, 39, 0.35) 38%,
    rgba(255, 224, 233, 0.08) 75%,
    rgba(255, 224, 233, 0.18) 100%
  );
}

.hero-content {
  position: relative;

  z-index: 3;

  max-width: 1200px;

  width: 100%;

  margin: 0 auto;

  padding: 50px;

  color: white;
}

.hero-kicker {
  display: block;

  margin-bottom: 20px;

  font-family: Arial, sans-serif;

  font-size: 10px;

  letter-spacing: 4px;

  opacity: 0.85;
}

.hero-content h1 {
  max-width: 620px;

  margin: 0;

  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(55px, 8vw, 105px);

  line-height: 0.92;

  font-weight: 400;

  letter-spacing: -3px;
}

.hero-content h1 em {
  display: block;

  margin-left: 85px;

  font-family: "Brush Script MT", "Segoe Script", cursive;

  font-weight: 400;

  font-size: 1.15em;

  color: #ffd8e3;

  letter-spacing: 0;
}

.hero-content p {
  max-width: 390px;

  margin: 30px 0 25px;

  font-family: Georgia, serif;

  font-size: 15px;

  line-height: 1.7;

  color: rgba(255, 255, 255, 0.88);
}

.hero-meta {
  display: flex;

  align-items: center;

  gap: 16px;

  font-family: Arial, sans-serif;

  font-size: 8px;

  letter-spacing: 2.5px;

  opacity: 0.9;
}

.hero-meta i {
  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: #ffc0d1;
}

/* Scroll */

.hero-scroll {
  position: absolute;

  bottom: 35px;
  left: 50%;

  z-index: 4;

  transform: translateX(-50%);

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 10px;

  font-family: Arial, sans-serif;

  font-size: 8px;

  letter-spacing: 3px;

  color: white;

  opacity: 0.8;
}

.scroll-line {
  width: 1px;

  height: 45px;

  background: linear-gradient(to bottom, white, transparent);

  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* Hero petals */

.hero-petals span {
  position: absolute;

  z-index: 2;

  color: #ffd1dd;

  opacity: 0.7;

  animation: heroPetal 5s ease-in-out infinite;
}

.hero-petals span:nth-child(1) {
  top: 20%;
  right: 18%;
  font-size: 25px;
}

.hero-petals span:nth-child(2) {
  top: 45%;
  right: 7%;
  font-size: 40px;
  animation-delay: 1s;
}

.hero-petals span:nth-child(3) {
  bottom: 20%;
  left: 50%;
  font-size: 15px;
  animation-delay: 2s;
}

.hero-petals span:nth-child(4) {
  top: 30%;
  left: 45%;
  font-size: 12px;
  animation-delay: 3s;
}

@keyframes heroPetal {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-20px) rotate(15deg);
  }
}

/* =====================================================
   SHARED SECTION HEADING
===================================================== */

.gallery-stories,
.editorial-gallery {
  max-width: 1320px;

  margin: 0 auto;

  padding: 110px 35px;
}

.section-heading {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 40px;

  margin-bottom: 45px;
}

.section-kicker {
  display: block;

  margin-bottom: 10px;

  font-family: Arial, sans-serif;

  font-size: 9px;

  letter-spacing: 3px;

  color: var(--pink);
}

.section-heading h2 {
  margin: 0;

  font-family: Georgia, serif;

  font-size: clamp(35px, 5vw, 60px);

  font-weight: 400;

  line-height: 0.95;

  color: var(--pink-deep);
}

.section-heading h2 em {
  font-family: "Brush Script MT", "Segoe Script", cursive;

  font-weight: 400;

  color: var(--pink);
}

.section-heading > p {
  max-width: 310px;

  margin: 0;

  font-family: Georgia, serif;

  font-size: 14px;

  line-height: 1.7;

  color: #936273;
}

/* =====================================================
   STORIES
===================================================== */

.gallery-stories {
  position: relative;
}

.stories-wrapper {
  position: relative;
}

.stories-track {
  display: flex;

  gap: 27px;

  overflow-x: auto;

  scroll-behavior: smooth;

  scrollbar-width: none;

  padding: 8px 5px 15px;
}

.stories-track::-webkit-scrollbar {
  display: none;
}

.story-item {
  flex: 0 0 112px;

  border: none;

  background: transparent;

  padding: 0;

  cursor: pointer;

  text-align: center;
}

.story-ring {
  width: 105px;
  height: 105px;

  padding: 4px;

  border-radius: 50%;

  background: conic-gradient(#e86f91, #f6b2c3, #c74e70, #ef9db3, #e86f91);

  margin: 0 auto 12px;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.story-item:hover .story-ring {
  transform: scale(1.07);

  box-shadow: 0 10px 30px rgba(199, 92, 121, 0.25);
}

.story-image {
  position: relative;

  width: 100%;
  height: 100%;

  overflow: hidden;

  border-radius: 50%;

  border: 4px solid #fff8f7;

  background: #ead2d9;
}

.story-image img,
.story-image video {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.story-item > span {
  display: block;

  overflow: hidden;

  white-space: nowrap;

  text-overflow: ellipsis;

  font-family: Georgia, serif;

  font-size: 12px;

  color: var(--pink-deep);
}

/* Video story */

.story-play {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 27px;
  height: 27px;

  display: flex;

  align-items: center;
  justify-content: center;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.85);

  color: var(--pink-deep);

  font-size: 9px;

  padding-left: 2px;
}

/* Story arrows */

.story-scroll {
  position: absolute;

  top: 40px;

  z-index: 4;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  border: 1px solid rgba(141, 48, 77, 0.15);

  background: rgba(255, 255, 255, 0.95);

  color: var(--pink-deep);

  font-size: 24px;

  cursor: pointer;

  box-shadow: 0 5px 20px rgba(141, 48, 77, 0.12);
}

.story-scroll-left {
  left: -18px;
}

.story-scroll-right {
  right: -18px;
}

/* =====================================================
   GALLERY FILTER
===================================================== */

.gallery-filter {
  display: flex;

  align-items: center;

  gap: 7px;

  padding: 5px;

  border: 1px solid rgba(141, 48, 77, 0.12);

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.65);
}

.gallery-filter button {
  border: none;

  background: transparent;

  padding: 9px 15px;

  border-radius: 30px;

  font-family: Arial, sans-serif;

  font-size: 9px;

  letter-spacing: 1px;

  color: #936273;

  cursor: pointer;

  transition: 0.3s ease;
}

.gallery-filter button.active,
.gallery-filter button:hover {
  color: white;

  background: var(--pink-deep);
}

/* =====================================================
   EDITORIAL GRID
===================================================== */

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  grid-auto-rows: 260px;

  gap: 13px;

  grid-auto-flow: dense;
}

.gallery-card {
  position: relative;

  overflow: hidden;

  border-radius: 5px;

  background: #efdde2;

  cursor: pointer;

  box-shadow: 0 8px 25px rgba(111, 45, 63, 0.08);

  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 20px 45px rgba(111, 45, 63, 0.17);
}

.gallery-card img,
.gallery-card video {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-card:hover img,
.gallery-card:hover video {
  transform: scale(1.06);
}

/* Grid sizes */

.card-large {
  grid-column: span 2;

  grid-row: span 2;
}

.card-tall {
  grid-row: span 2;
}

.card-wide {
  grid-column: span 2;
}

/* =====================================================
   CARD OVERLAY
===================================================== */

.card-overlay {
  position: absolute;

  inset: 0;

  display: flex;

  flex-direction: column;

  justify-content: flex-end;

  padding: 25px;

  background: linear-gradient(
    to top,
    rgba(57, 19, 31, 0.75),
    rgba(57, 19, 31, 0.05) 65%
  );

  color: white;
}

.card-overlay span {
  font-family: Arial, sans-serif;

  font-size: 8px;

  letter-spacing: 2.5px;

  opacity: 0.8;
}

.card-overlay h3 {
  max-width: 300px;

  margin: 7px 0 0;

  font-family: Georgia, serif;

  font-size: 21px;

  font-weight: 400;

  line-height: 1.15;
}

.card-overlay b {
  position: absolute;

  top: 20px;
  right: 20px;

  width: 35px;
  height: 35px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.45);

  border-radius: 50%;

  font-size: 15px;

  font-weight: 400;

  opacity: 0;

  transform: translateY(-5px);

  transition: 0.35s ease;
}

.gallery-card:hover .card-overlay b {
  opacity: 1;

  transform: translateY(0);
}

/* =====================================================
   VIDEO
===================================================== */

.video-indicator {
  position: absolute;

  top: 20px;
  left: 20px;

  width: 42px;
  height: 42px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.9);

  color: var(--pink-deep);

  font-size: 11px;

  padding-left: 2px;

  z-index: 3;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   LOAD MORE
===================================================== */

.load-more {
  display: flex;

  align-items: center;

  gap: 15px;

  margin: 45px auto 0;

  padding: 13px 25px;

  border: 1px solid var(--pink);

  border-radius: 50px;

  background: transparent;

  color: var(--pink-deep);

  font-family: Arial, sans-serif;

  font-size: 9px;

  letter-spacing: 2px;

  cursor: pointer;

  transition: 0.3s ease;
}

.load-more i {
  font-style: normal;

  font-size: 16px;

  transition: transform 0.3s ease;
}

.load-more:hover {
  background: var(--pink-deep);

  color: white;

  transform: translateY(-3px);

  box-shadow: 0 12px 25px rgba(141, 48, 77, 0.2);
}

.load-more:hover i {
  transform: translateY(4px);
}

/* =====================================================
   STORY VIEWER
===================================================== */

.story-viewer {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

  align-items: center;
  justify-content: center;

  background: rgba(35, 10, 18, 0.97);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition: opacity 0.35s ease;
}

.story-viewer.active {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;
}

.viewer-media {
  position: relative;

  width: min(420px, 90vw);

  height: min(750px, 88vh);

  overflow: hidden;

  border-radius: 12px;

  background: #18090e;

  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
}

.viewer-media img,
.viewer-media video {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* Progress */

.story-progress {
  position: absolute;

  top: 15px;

  left: 50%;

  transform: translateX(-50%);

  width: min(400px, 85vw);

  display: flex;

  gap: 4px;

  z-index: 10;
}

.story-progress span {
  height: 3px;

  flex: 1;

  border-radius: 5px;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.35);
}

.story-progress span i {
  display: block;

  width: 0%;

  height: 100%;

  background: white;
}

/* Viewer controls */

.viewer-close {
  position: absolute;

  top: 25px;
  right: 30px;

  z-index: 10;

  border: none;

  background: transparent;

  color: white;

  font-size: 38px;

  cursor: pointer;
}

.viewer-prev,
.viewer-next {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 50px;
  height: 50px;

  border: 1px solid rgba(255, 255, 255, 0.25);

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  color: white;

  font-size: 30px;

  cursor: pointer;

  z-index: 10;
}

.viewer-prev {
  left: 30px;
}

.viewer-next {
  right: 30px;
}

.viewer-caption {
  position: absolute;

  bottom: 30px;

  left: 50%;

  transform: translateX(-50%);

  color: white;

  font-family: Georgia, serif;

  font-size: 14px;

  text-align: center;
}

/* =====================================================
   LIGHTBOX
===================================================== */

.image-lightbox {
  position: fixed;

  inset: 0;

  z-index: 10000;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(30, 8, 15, 0.96);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition: 0.3s ease;
}

.image-lightbox.active {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;
}

.image-lightbox img {
  max-width: 92vw;

  max-height: 90vh;

  object-fit: contain;

  border-radius: 5px;

  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;

  top: 20px;
  right: 25px;

  border: none;

  background: none;

  color: white;

  font-size: 40px;

  cursor: pointer;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 800px) {
  .gallery-hero {
    min-height: 650px;

    height: 85vh;
  }

  .hero-content {
    padding: 30px;

    align-self: flex-end;

    padding-bottom: 100px;
  }

  .hero-content h1 {
    font-size: 58px;
  }

  .hero-content h1 em {
    margin-left: 35px;
  }

  .gallery-stories,
  .editorial-gallery {
    padding: 75px 18px;
  }

  .section-heading {
    flex-direction: column;

    align-items: flex-start;

    gap: 25px;
  }

  .gallery-filter {
    max-width: 100%;

    overflow-x: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);

    grid-auto-rows: 210px;

    gap: 8px;
  }

  .card-large {
    grid-column: span 2;

    grid-row: span 2;
  }

  .card-wide {
    grid-column: span 2;
  }

  .card-tall {
    grid-row: span 2;
  }

  .story-scroll {
    display: none;
  }

  .stories-track {
    gap: 18px;
  }

  .story-item {
    flex-basis: 91px;
  }

  .story-ring {
    width: 85px;
    height: 85px;
  }

  .viewer-prev,
  .viewer-next {
    width: 38px;
    height: 38px;

    font-size: 22px;
  }

  .viewer-prev {
    left: 8px;
  }

  .viewer-next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 48px;
  }

  .hero-content p {
    font-size: 13px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);

    grid-auto-rows: 180px;
  }

  .card-large {
    grid-row: span 2;
  }

  .card-overlay {
    padding: 15px;
  }

  .card-overlay h3 {
    font-size: 16px;
  }

  .card-overlay b {
    display: none;
  }
}
