/* ==========================================================================
   WEDDING PHOTOGRAPHY PAGE STYLES — Darpan Studio
   ========================================================================== */

/* Solid White Header Override */
.site-header {
  background: #ffffff !important;
  border-bottom: 1px solid #eaeaea !important;
  position: sticky !important;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.site-header .brand-name {
  color: #111111 !important;
}

.site-header .nav-link {
  color: #222222 !important;
}

.site-header .mobile-menu-toggle span {
  background-color: #111111 !important;
}

.site-header .nav-link.active-page {
  color: var(--color-accent-gold) !important;
  font-weight: 600;
}

.site-header .nav-link.active-page::after {
  width: 100% !important;
  background-color: var(--color-accent-gold) !important;
}

/* Intro Header Section (Matching Pre-Wedding Architecture) */
.wp-intro-section {
  padding: 5rem 1.5rem 3.5rem 1.5rem;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  background-color: #ffffff;
}

.wp-page-title {
  font-family: 'Edito A Regular', 'Editor Regular', serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 400;
  color: #111111;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.wp-page-desc {
  font-family: 'Edito A Regular', 'Editor Regular', serif;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.85;
  color: #333333;
  margin: 0 auto;
  max-width: 820px;
  letter-spacing: 0.01em;
}

/* 3-Column Image Grid Showcase (Matching Screenshots 1 & 2) */
.wp-grid-section {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 1.5rem 7rem 1.5rem;
}

.wp-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.wp-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background-color: #f4f2ee;
  text-decoration: none;
  display: block;
}

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

/* Hover Overlay with Translucent Gray and Centered Weds Title (Matching Screenshot 2) */
.wp-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(100, 110, 115, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.wp-card-title {
  font-family: 'Edito A Regular', 'Editor Regular', serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.wp-card:hover .wp-card-img {
  transform: scale(1.06);
}

.wp-card:hover .wp-card-overlay {
  opacity: 1;
}

.wp-card:hover .wp-card-title {
  transform: translateY(0);
}

/* Single Couple Detail Page Styles (Full Width Editorial Mosaic) */
.couple-detail-section {
  padding: 4rem 1.5rem 7rem 1.5rem;
  background-color: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.couple-detail-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3.5rem auto;
  padding: 0 1rem;
}

.couple-category-tag {
  font-family: 'Sloop', 'Sloop Script', cursive;
  font-size: 1.8rem;
  color: #666666;
  margin-bottom: 0.5rem;
  display: block;
}

.couple-main-title {
  font-family: 'Edito A Regular', 'Editor Regular', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111111;
  margin: 0;
}

.couple-images-stack {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.couple-stack-img {
  width: 100%;
  height: auto;
  max-height: 850px;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* =========================================================
   MOSAIC GRID GALLERY STYLES (FULL-WIDTH EDITORIAL COLLAGE)
   ========================================================= */
.couple-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(240px, 20vw, 300px);
  grid-auto-flow: dense;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.couple-mosaic-item {
  position: relative;
  overflow: hidden;
  background-color: #121212;
  cursor: pointer;
  border-radius: 3px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.couple-mosaic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

.couple-mosaic-item:hover .couple-mosaic-img {
  transform: scale(1.04);
}

/* Mosaic Spans: Tall, Wide, Large Hero, Standard */
.couple-mosaic-item.mosaic-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.couple-mosaic-item.mosaic-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.couple-mosaic-item.mosaic-large {
  grid-column: span 2;
  grid-row: span 2;
}

.couple-mosaic-item.mosaic-standard {
  grid-column: span 1;
  grid-row: span 1;
}

/* Hover Overlay & Action Zoom Button */
.couple-mosaic-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mosaic-zoom-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.7);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.couple-mosaic-item:hover .couple-mosaic-overlay {
  opacity: 1;
}

.couple-mosaic-item:hover .mosaic-zoom-btn {
  transform: scale(1);
}

/* Fullscreen Lightbox Modal */
.mosaic-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mosaic-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mosaic-lightbox-container {
  position: relative;
  z-index: 2;
  width: 95vw;
  height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mosaic-lb-close {
  position: absolute;
  top: 15px;
  right: 25px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 5px 12px;
}

.mosaic-lb-close:hover {
  color: #d4af37;
  transform: scale(1.1);
}

.mosaic-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.25s, transform 0.2s;
  backdrop-filter: blur(6px);
}

.mosaic-lb-nav:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.mosaic-lb-prev {
  left: 20px;
}

.mosaic-lb-next {
  right: 20px;
}

.mosaic-lb-image-wrapper {
  max-width: 86vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mosaic-lb-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  animation: mosaicLbFade 0.28s ease-out;
}

@keyframes mosaicLbFade {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.mosaic-lb-counter {
  color: #dddddd;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-top: 14px;
  font-weight: 500;
}

@media (min-width: 1700px) {
  .couple-mosaic-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 290px;
  }
}

@media (max-width: 1200px) {
  .couple-mosaic-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 8px;
  }
}

@media (max-width: 992px) {
  .wp-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  .couple-mosaic-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .couple-detail-section {
    padding: 3rem 15px 5rem 15px;
  }

  .couple-mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 6px;
    padding: 0;
  }

  .couple-mosaic-item.mosaic-wide,
  .couple-mosaic-item.mosaic-large {
    grid-column: span 2;
  }

  .mosaic-lb-nav {
    width: 44px;
    height: 44px;
  }

  .mosaic-lb-prev {
    left: 10px;
  }

  .mosaic-lb-next {
    right: 10px;
  }
}

@media (max-width: 576px) {
  .wp-grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .wp-intro-section {
    padding: 3.5rem 1.2rem 2.5rem 1.2rem;
  }

  .couple-detail-section {
    padding: 2.5rem 12px 4rem 12px;
  }

  /* True 2-Column Dense Mosaic Grid for Mobile */
  .couple-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(140px, 38vw, 175px);
    grid-auto-flow: dense;
    gap: 6px;
    padding: 0;
  }

  /* Mobile Asymmetric Spans: Tall (Portrait), Wide (Banner), Large (Hero), Standard (Square) */
  .couple-mosaic-item.mosaic-tall {
    grid-column: span 1;
    grid-row: span 2;
  }

  .couple-mosaic-item.mosaic-wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .couple-mosaic-item.mosaic-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .couple-mosaic-item.mosaic-standard {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Mobile Lightbox Controls */
  .mosaic-lb-close {
    top: 10px;
    right: 15px;
    font-size: 2.2rem;
  }

  .mosaic-lb-nav {
    width: 38px;
    height: 38px;
  }

  .mosaic-lb-prev {
    left: 6px;
  }

  .mosaic-lb-next {
    right: 6px;
  }

  .mosaic-lb-image-wrapper {
    max-width: 95vw;
    max-height: 82vh;
  }

  .mosaic-lb-img {
    max-height: 74vh;
  }
}

/* =========================================================
   PAGINATION & SKELETON LOADER FOR MOSAIC GALLERY
   ========================================================= */
.couple-mosaic-skeleton-wrap {
  width: 100%;
  margin-top: 10px;
  animation: skeletonFadeIn 0.3s ease;
}

@keyframes skeletonFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mosaic-skeleton-grid {
  margin-bottom: 1.5rem;
}

.couple-mosaic-skeleton {
  position: relative;
  overflow: hidden;
  background-color: #161616;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  min-height: 100%;
}

.couple-mosaic-skeleton.mosaic-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.couple-mosaic-skeleton.mosaic-standard {
  grid-column: span 1;
  grid-row: span 1;
}

.couple-mosaic-skeleton.mosaic-large {
  grid-column: span 2;
  grid-row: span 2;
}

.skeleton-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(212, 175, 55, 0.12) 50%,
    rgba(255, 255, 255, 0.04) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: skeletonShimmer 1.5s infinite ease-in-out;
}

@keyframes skeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

.gallery-loading-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 1.5rem 0 2rem 0;
  color: #888888;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-loading-text .spinner-dot {
  width: 9px;
  height: 9px;
  background-color: var(--color-accent-gold, #d4af37);
  border-radius: 50%;
  animation: dotPulse 1.2s infinite ease-in-out;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(0.6); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 1; }
}

.gallery-end-message {
  text-align: center;
  padding: 3rem 1rem 4rem 1rem;
  color: #777777;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 2rem;
}

/* Smooth fade in for newly loaded gallery items */
.couple-mosaic-item.item-fade-in {
  animation: itemFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes itemFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .couple-mosaic-skeleton.mosaic-large {
    grid-column: span 2;
  }
}