/* Gallery Notify Section */
.gallery-notify {
  padding: var(--spacing-6xl) 0;
  text-align: center;
}
.gallery-notify--brand {
  background: var(--color-background-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.gallery-notify .notify-title {
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-md);
}
.gallery-notify .notify-text {
  font-family: var(--font-secondary);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
}
.notify-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
/* legacy fields container (kept for safety) */
.notify-form__fields input,
.notify-form__fields select,
.notify-form__fields textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  background: var(--color-background);
  color: var(--color-text-primary);
}
.notify-form .btn {
  align-self: center;
  padding: var(--spacing-md) var(--spacing-2xl);
}
/* inline row for single email + button */
.notify-form__row {
  display: flex;
  gap: var(--spacing-sm);
  align-items: stretch;
}
.notify-form__row input[type="email"] {
  flex: 1 1 auto;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  background: var(--color-background);
  color: var(--color-text-primary);
  border-radius: 0;
}
.notify-form__row input[type="email"]:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.notify-form__row .btn {
  align-self: stretch;
  white-space: nowrap;
}
.form-error {
  color: var(--color-danger, #ff6b6b);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}
/* invalid state */
.notify-form__row input[type="email"].is-invalid {
  border-color: var(--color-danger, #ff6b6b);
  box-shadow: 0 0 0 2px
    color-mix(in srgb, var(--color-danger, #ff6b6b) 22%, transparent);
}
/* success banner */
.notify-success {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-xl);
  border: 1px solid var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 18%, transparent);
  color: var(--color-primary);
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-md);
}
.notify-success__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: auto;
  aspect-ratio: 1 / 1; /* keep perfect circle regardless of context */
  flex: 0 0 28px; /* prevent stretching in flex containers */
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-background);
  font-weight: 800;
  line-height: 1;
}
.notify-success__copy {
  text-align: left;
}
.notify-success__title {
  font-family: var(--font-primary);
  font-weight: 700;
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.notify-success__text {
  font-family: var(--font-secondary);
  margin: 0;
  opacity: 0.95;
}
@media (max-width: 520px) {
  .notify-form__row {
    flex-direction: column;
  }
  .notify-form .btn {
    align-self: stretch;
  }
}
/* Admin note: not public (branded but distinct) */
.gallery-admin-note {
  position: relative;
  margin: 2rem 0;
  padding: 1rem 1.25rem 1.25rem 1.25rem;
  background: #0b0b0b; /* darker than site background to differentiate */
  color: #f5f5f5;
  border: 1px solid #2a2a2a;
  border-left: 6px solid #ffc107; /* warning accent */
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  overflow: hidden;
}
.gallery-admin-note__stripe {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: repeating-linear-gradient(45deg, #ffc107, #ffc107 10px, #212121 10px, #212121 20px);
}
.gallery-admin-note__badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #0b0b0b;
  background: #ffc107;
  border: 1px solid #d39e00;
  padding: 2px 6px;
  border-radius: 3px;
}
.gallery-admin-note__body {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.gallery-admin-note__icon {
  font-size: 1.75rem;
  line-height: 1;
  color: #ffc107;
  margin-top: 2px;
}
.gallery-admin-note__text {
  max-width: 70ch;
}
.gallery-admin-note__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffe58f;
}
.gallery-admin-note__desc {
  margin: 0;
  color: #d6d6d6;
  font-family: var(--font-secondary);
}
/* Gallery (branded) */
.gallery-page {
  --gap: 6px;
}
.gallery-header {
  max-width: var(--container-max-width);
  margin: 0 auto var(--spacing-3xl);
  text-align: center;
}
.gallery-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 2px;
  margin: 0 0 var(--spacing-md);
  font-family: var(--font-primary);
}
.gallery-intro {
  max-width: 820px;
  margin: 0 auto;
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.55;
}

/* Grid container (retrato handles sizing) */
#album {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  line-height: 0;
  font-size: 0;
}
#album img {
  display: inline-block !important;
  max-width: none !important;
  height: revert !important; /* revert global height: auto to use native HTML height attributes */
  object-fit: cover;
  cursor: pointer;
  background: var(--color-background-light);
  border-radius: var(--radius-sm);
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease,
              filter 0.4s ease;
  margin: 4px;
  isolation: isolate;
  vertical-align: top;
  position: relative;
}
#album img:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
  transform: scale(1.02);
  filter: brightness(1.05);
  z-index: 2;
}
#album img:focus-visible {
  outline: 2px solid var(--color-roxo-assinatura, #8E6AA8);
  outline-offset: 3px;
}
#album img[data-loading="true"] {
  filter: blur(14px) brightness(0.9) saturate(0.5) !important;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  font-family: var(--font-body), 'Inter', sans-serif;
}
.lightbox.is-active {
  display: flex;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.96); /* Preto Editorial background */
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lightbox.is-active .lightbox__backdrop {
  opacity: 1;
}
.lightbox__inner {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 100dvh; /* definite height so flex: 1 stage is properly bounded */
  padding: 3rem 2rem 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: var(--color-off-white, #F3EFEA);
  opacity: 0;
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  z-index: 2;
}
.lightbox.is-active .lightbox__inner {
  opacity: 1;
  transform: scale(1);
}
.lightbox__stage {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
}
.lightbox__stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 2px; /* Editorial crisp edges */
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: rgba(27, 27, 27, 0.3);
}
.lb-counter {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-greige-parisiense, #D8D1C7);
  letter-spacing: 0.1em;
  padding: 0 0.5rem;
  opacity: 0.8;
  align-self: center;
}
.lightbox__meta {
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.lightbox__caption {
  font-family: var(--font-heading), 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
  color: var(--color-creme-claro, #F5F1EB);
}
.lightbox__attribution {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-greige-parisiense, #D8D1C7);
  opacity: 0.8;
  margin: 0;
}
.lightbox__close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-off-white, #F3EFEA);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  z-index: 2000;
}
.lightbox__close svg {
  transition: transform 0.3s ease;
}
.lightbox__close:hover {
  background: var(--color-roxo-assinatura, #8E6AA8);
  border-color: var(--color-roxo-assinatura, #8E6AA8);
  color: #fff;
  transform: rotate(90deg) scale(1.05);
}
.lightbox__close:hover svg {
  transform: scale(1.1);
}
.lightbox__actions {
  width: auto;
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  z-index: 1900;
  background: rgba(26, 26, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(140%);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.lb-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-off-white, #F3EFEA);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.lb-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  transition: transform 0.3s ease;
}
.lb-btn:hover,
.lb-btn:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-roxo-assinatura, #8E6AA8);
  color: #fff;
  transform: translateY(-1px);
}
.lb-btn:hover svg {
  transform: translateY(-1px);
}
#prev-btn:hover svg {
  transform: translateX(-2px);
}
#next-btn:hover svg {
  transform: translateX(2px);
}
.lb-btn.is-copied {
  background: rgba(142, 106, 168, 0.25);
  border-color: var(--color-roxo-assinatura, #8E6AA8);
  color: #fff;
}

@media (max-width: 860px) {
  .lightbox__inner {
    padding: 3.2rem 1.1rem 2rem;
    gap: 1.2rem;
  }
  .lightbox__stage img {
    max-width: 96vw;
  }
  .lb-btn {
    padding: 0.55rem 0.9rem;
  }
  .lightbox__actions {
    bottom: 1.5rem;
    padding: 0.5rem 1.1rem;
  }
  .lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
  }
}
@media (max-width: 600px) {
  .gallery-title {
    font-size: clamp(2rem, 11vw, 3rem);
  }
  #album img {
    border-radius: 4px;
    margin: 3px;
  }
  .lightbox__stage img {
    max-width: 96vw;
  }
  .lightbox__actions {
    flex-wrap: wrap;
    row-gap: 0.4rem;
    bottom: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  .lightbox__close {
    top: 0.6rem;
    right: 0.6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  #album img {
    transition: none;
  }
  #album img:hover {
    transform: none;
  }
}

/* =============================================
   Gallery Hero & CTA Sections
   ============================================= */

/* Hero wrapper */
.hero.hero--gallery {
  position: relative;
  min-height: clamp(520px, 78vh, 920px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero--gallery .hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse at 30% 35%,
      rgba(255, 120, 40, 0.35),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.78) 85%),
    var(--hero-gallery-image, transparent)
      center/cover no-repeat;
  filter: saturate(120%) contrast(105%);
  animation: heroFade 1.2s ease both;
  z-index: -2;
}
.hero--gallery::after {
  /* subtle noise overlay if you add a data-uri later */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: -1;
}
@keyframes heroFade {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero__inner {
  width: 100%;
  max-width: var(--container-max-width, 1320px);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) var(--container-padding, 2rem)
    calc(var(--spacing-4xl, 4rem) + 1rem);
}
.hero__title {
  font-family: var(--font-primary);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}
.hero__subtitle {
  max-width: 760px;
  font-size: clamp(1rem, 1.35vw + 0.6rem, 1.35rem);
  line-height: 1.45;
  opacity: 0.92;
  margin: 0 0 2rem;
}
.hero__cta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Buttons (scoped so we don't override global if already defined) */
/* Reuse base button sizing; add minor variant helpers */
.hero__cta .btn {
  padding: var(--spacing-md) var(--spacing-2xl);
  font-size: var(--font-size-md);
}
.btn--ghost {
  background: transparent;
  border: 2px solid var(--color-text-primary);
}
.btn--ghost:hover {
  background: var(--color-text-primary);
  color: var(--color-background);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  display: flex;
  justify-content: center;
}
.hero__scroll-hint .scroll-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  align-self: flex-start;
  margin-top: 6px;
  animation: scrollDot 2.4s ease-in-out infinite;
}
@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  25% {
    opacity: 1;
  }
  70% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 0;
  }
}

/* CTA band */
/* CTA band made consistent with private hire highlight cards */
.gallery-cta-band {
  padding: 4rem 0 4.5rem;
  background: var(--color-background-light);
}
.gallery-cta-band__inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.cta-group {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.cta-item {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.8rem 1.5rem 2.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: background 0.45s ease, border-color 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.cta-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
}
.cta-title {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin: 0;
}
.cta-text {
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.88;
  margin: 0 0 0.4rem;
}

/* Utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .hero.hero--gallery {
    min-height: 70vh;
    padding: 4rem 0 2.5rem;
  }
  .hero__title {
    font-size: clamp(2.3rem, 6.5vw, 3.4rem);
  }
  .hero__subtitle {
    font-size: 1.05rem;
  }
  .hero__cta .btn {
    padding: var(--spacing-md) var(--spacing-xl);
  }
  .gallery-cta-band {
    padding: 3.2rem 0 4rem;
  }
}
@media (max-width: 600px) {
  .hero.hero--gallery {
    min-height: 68vh;
  }
  .hero__inner {
    padding: 4.2rem 1.25rem 3.2rem;
  }
  .hero__scroll-hint {
    bottom: 0.9rem;
  }
  .cta-item {
    padding: 1.6rem 1.1rem 1.8rem;
  }
}
