/* =====================================================================
   SUBHA'S CAKE — GALLERY PAGE (gallery.css)
   Design index30.css wale gallery section jaisa.
   Sabhi images dikhengi — koi display:none nahi, koi button nahi.
   ===================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  --sc-red: #c9000b;
  --sc-red-dark: #a60009;
  --sc-brown: #321512;
  --sc-pink: #fff1ed;
  --sc-text: #604744;
  --sc-border: #f3d6d9;
  --sc-soft: #fff0f2;
  --sc-radius: 18px;
  --sc-shadow: 0 10px 28px rgba(113, 46, 46, .10);
  --sc-font-head: 'Playfair Display', Georgia, serif;
  --sc-font-body: Poppins, Arial, sans-serif;
  --sc-section-y: clamp(42px, 6vw, 72px);
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: clip
}

.sc-gallery-section,
.sc-gallery-section *,
.sc-gallery-lightbox,
.sc-gallery-lightbox * {
  box-sizing: border-box
}

body.sc-gallery-open {
  overflow: hidden
}

/* ---------- 2. SECTION HEAD ---------- */
.sc-head {
  max-width: 720px;
  margin: 0 auto clamp(24px, 3vw, 38px);
  text-align: center
}

.sc-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--sc-red);
  font: 700 11px/1.5 var(--sc-font-body);
  letter-spacing: .22em;
  text-transform: uppercase
}

.sc-eyebrow::before,
.sc-eyebrow::after {
  content: "";
  flex: 0 0 34px;
  height: 1px;
  background: #f58b92
}

.sc-title {
  position: relative;
  display: inline-block;
  margin: 0;
  color: var(--sc-brown);
  font: 700 clamp(27px, 3.6vw, 44px)/1.18 var(--sc-font-head);
  letter-spacing: -.02em
}

.sc-title em {
  color: var(--sc-red);
  font-style: italic;
  font-weight: 600
}

.sc-desc {
  max-width: 620px;
  margin: 10px auto 0;
  color: var(--sc-text);
  font: 400 13.5px/1.7 var(--sc-font-body)
}

/* Breadcrumb */
.sc-gallery-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
  color: var(--sc-text);
  font: 500 12px/1.4 var(--sc-font-body)
}

.sc-gallery-breadcrumb a {
  color: var(--sc-red);
  text-decoration: none;
  font-weight: 600
}

.sc-gallery-breadcrumb a:hover {
  text-decoration: underline
}

.sc-gallery-breadcrumb span:last-child {
  color: var(--sc-brown);
  font-weight: 600
}

/* ---------- 3. BACKGROUND (blurred image + light overlay) ---------- */
.sc-bgsection {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff8f6;
  padding: var(--sc-section-y) 24px
}

.sc-bgsection::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -2;
  background: var(--sc-bg-d) center/cover no-repeat;
  filter: blur(2px);
  transform: scale(1.03);
  pointer-events: none
}

.sc-bgsection::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 248, 246, .35);
  pointer-events: none
}

.sc-gallery-section {
  --sc-bg-d: url("../images/gallery/gallery-bg-desktop.png");
  --sc-bg-m: url("../images/gallery/gallery-bg-mobile.png");
  min-height: 60vh
}

@media(max-width:768px) {
  .sc-bgsection {
    padding-left: 12px;
    padding-right: 12px
  }

  .sc-bgsection::before {
    background-image: var(--sc-bg-m)
  }
}

/* ---------- 4. GALLERY GRID (saari images, koi limit nahi) ---------- */
.sc-gallery-container {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto
}

.sc-gallery-grid {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px
}

.sc-gallery-item {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 13px;
  border: 3px solid rgba(255, 255, 255, .98);
  background: #f9dce5;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(126, 36, 65, .1);
  transition: transform .3s, box-shadow .3s
}

.sc-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s
}

.sc-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(126, 36, 65, .16)
}

.sc-gallery-item:hover img {
  transform: scale(1.035)
}

.sc-gallery-item:focus-visible {
  outline: 3px solid var(--sc-red-dark);
  outline-offset: 3px
}

/* Hover overlay icon */
.sc-gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(50, 21, 18, .28);
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none
}

.sc-gallery-item:hover .sc-gallery-overlay,
.sc-gallery-item:focus-visible .sc-gallery-overlay {
  opacity: 1
}

/* Empty state */
.sc-gallery-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--sc-text)
}

.sc-gallery-empty span {
  display: block;
  margin-bottom: 8px;
  font-size: 38px
}

.sc-gallery-empty h3 {
  margin: 0 0 6px;
  color: var(--sc-brown);
  font: 700 22px var(--sc-font-head)
}

.sc-gallery-empty p {
  margin: 0;
  font: 13px var(--sc-font-body)
}

@media(max-width:1024px) {
  .sc-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px
  }
}

@media(max-width:767px) {
  .sc-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
  }

  .sc-gallery-item {
    border-width: 2px;
    border-radius: 10px
  }

  .sc-gallery-overlay {
    display: none
  }

  .sc-gallery-breadcrumb {
    font-size: 11px
  }

  .sc-eyebrow {
    gap: 6px;
    font-size: 9.5px;
    letter-spacing: .15em
  }

  .sc-eyebrow::before,
  .sc-eyebrow::after {
    flex-basis: 20px
  }

  .sc-desc {
    font-size: 12px;
    line-height: 1.55;
    max-width: 360px
  }
}

/* ---------- 5. LIGHTBOX ---------- */
.sc-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: rgba(27, 8, 14, .94);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px)
}

.sc-gallery-lightbox.active {
  display: flex
}

.sc-gallery-lightbox img {
  display: block;
  max-width: 90vw;
  max-height: 87vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45)
}

.sc-gallery-close,
.sc-gallery-prev,
.sc-gallery-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  transition: background .2s
}

.sc-gallery-close:hover,
.sc-gallery-prev:hover,
.sc-gallery-next:hover {
  background: var(--sc-red)
}

.sc-gallery-close {
  top: 20px;
  right: 20px;
  font-size: 29px
}

.sc-gallery-prev {
  left: 20px;
  font-size: 37px
}

.sc-gallery-next {
  right: 20px;
  font-size: 37px
}

.sc-gallery-counter {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 5px 13px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font: 600 12px/1.2 var(--sc-font-body)
}

@media(max-width:767px) {
  .sc-gallery-lightbox {
    padding: 10px
  }

  .sc-gallery-lightbox img {
    max-width: 94vw;
    max-height: 80vh;
    border-radius: 8px
  }

  .sc-gallery-close,
  .sc-gallery-prev,
  .sc-gallery-next {
    width: 39px;
    height: 39px
  }

  .sc-gallery-close {
    top: 11px;
    right: 11px;
    font-size: 26px
  }

  .sc-gallery-prev {
    left: 7px;
    font-size: 31px
  }

  .sc-gallery-next {
    right: 7px;
    font-size: 31px
  }
}

/* ---------- 6. FLOATING CONTACT ---------- */
.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px
}

.floating-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
  animation: floatingMove 3s ease-in-out infinite;
  transition: transform .3s, box-shadow .3s
}

.floating-call {
  background: linear-gradient(135deg, #e5383f, var(--sc-red))
}

.floating-whatsapp {
  background: #25d366;
  animation-delay: .5s
}

.floating-btn svg {
  width: 27px;
  height: 27px;
  fill: currentColor
}

@keyframes floatingMove {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

.floating-btn::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: floatingPulse 2.5s infinite
}

.floating-call::before {
  color: #e5383f
}

.floating-whatsapp::before {
  color: #25d366
}

@keyframes floatingPulse {
  0% {
    transform: scale(.9);
    opacity: .65
  }

  100% {
    transform: scale(1.35);
    opacity: 0
  }
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .23);
  animation-play-state: paused
}

.floating-btn:focus-visible {
  outline: 3px solid var(--sc-brown);
  outline-offset: 4px
}

.floating-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 13px;
  border-radius: 8px;
  background: var(--sc-brown);
  color: #fff;
  font: 500 12px var(--sc-font-body);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
  pointer-events: none
}

.floating-btn:hover .floating-tooltip,
.floating-btn:focus-visible .floating-tooltip {
  opacity: 1;
  visibility: visible
}

@media(max-width:768px) {
  .floating-contact {
    right: 13px;
    bottom: 22px;
    gap: 12px
  }

  .floating-btn {
    width: 48px;
    height: 48px
  }

  .floating-btn svg {
    width: 24px;
    height: 24px
  }

  .floating-tooltip {
    display: none
  }
}

@media(max-width:360px) {
  .floating-contact {
    right: 10px;
    bottom: 15px
  }

  .floating-btn {
    width: 44px;
    height: 44px
  }

  .floating-btn svg {
    width: 22px;
    height: 22px
  }
}

/* ---------- 7. REDUCED MOTION ---------- */
@media(prefers-reduced-motion:reduce) {

  .sc-gallery-item,
  .sc-gallery-item img,
  .sc-gallery-overlay,
  .floating-btn,
  .floating-btn::before {
    transition: none;
    animation: none
  }

  .sc-gallery-item:hover,
  .sc-gallery-item:hover img {
    transform: none
  }
}


/* =====================================================
   MOBILE GALLERY — SHORTER IMAGE HEIGHT
===================================================== */

@media (max-width: 767px) {

    .sc-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .sc-gallery-item {
        /* Width same rahega, height chhoti hogi */
        aspect-ratio: 16 / 11;

        border-width: 2px;
        border-radius: 10px;
    }

    .sc-gallery-overlay {
        display: none;
    }

    .sc-gallery-breadcrumb {
        font-size: 11px;
    }

    .sc-eyebrow {
        gap: 6px;
        font-size: 9.5px;
        letter-spacing: .15em;
    }

    .sc-eyebrow::before,
    .sc-eyebrow::after {
        flex-basis: 20px;
    }

    .sc-desc {
        font-size: 12px;
        line-height: 1.55;
        max-width: 360px;
    }
}


/* =====================================================
   SMALL MOBILE — EVEN SHORTER
===================================================== */

@media (max-width: 420px) {

    .sc-gallery-grid {
        gap: 6px;
    }

    .sc-gallery-item {
        aspect-ratio: 16 / 10;
        border-radius: 8px;
    }
}