/* Estilos específicos de galeria; componentes comunes en common.css. */
.gallery-page :is(.gallery-main, .gallery-final-cta) { position: relative; }
.gallery-page .gallery-final-cta {
  background-image: radial-gradient(ellipse 240px 180px at 0% 100%, rgba(230,167,86,.12), transparent);
}
.gallery-page .gallery-final-cta .section-accent::after { left: calc(50% - 24px); }
@media (min-width: 1200px) {
  .gallery-page .hand-note.hand-note--gallery-grid {
    top: 5px; left: max(24px, calc((100% - 1180px) / 2 + 24px)); width: 240px;
  }
  .gallery-page .hand-note.hand-note--gallery-contact {
    bottom: 8px; right: max(24px, calc((100% - 1180px) / 2 + 24px)); width: 290px; font-size: 24px; --note-angle: 2deg;
  }
  .gallery-page .hand-note svg { width: 55px; height: 18px; margin-left: 170px; }
}
.gallery-page .gallery-hero { padding-block: clamp(2.25rem, 4vw, 3.5rem); background: var(--home-soft); }
.gallery-page .gallery-hero-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.gallery-page .gallery-hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); text-wrap: balance; margin-bottom: 1.25rem; }
.gallery-page .gallery-hero-copy > p:last-child { max-width: 530px; font-family: "Raleway", sans-serif; font-size: 0.95rem; font-weight: 500; margin-bottom: 0; }
.gallery-page .gallery-hero-image { display: block; width: 100%; height: auto; border-radius: 0.3rem; }
.gallery-page .gallery-main { padding-block: clamp(2.5rem, 4.5vw, 4rem); }
.gallery-page .gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.gallery-page .gallery-trigger { min-width: 0; border-radius: 0.375rem; }
.gallery-page .gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; transition: filter 160ms ease; }
.gallery-page .gallery-trigger:hover img,
.gallery-page .gallery-trigger:focus-visible img { transform: none; filter: brightness(0.96); }
.gallery-page #imageModal .modal-content { background: var(--home-paper); color: var(--home-brown); border: 1px solid rgba(47,23,15,0.15); border-radius: 0.4rem; }
.gallery-page #imageModal .modal-body { padding: 0.85rem; }
.gallery-page #imageModal .btn-close { box-sizing: border-box; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; background-color: var(--home-cream); border-radius: 50%; opacity: 1; }
.gallery-page #imageModal .carousel-inner { background: var(--home-brown); border-radius: 0.25rem; }
.gallery-page #imageModal .modal-img { width: 100%; height: auto; max-height: calc(100vh - 180px); max-height: calc(100svh - 180px); object-fit: contain; }
.gallery-page #imageModal .carousel-control-prev,
.gallery-page #imageModal .carousel-control-next { top: 50%; bottom: auto; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(47,23,15,0.9); opacity: 1; }
.gallery-page #imageModal .carousel-control-prev { left: 0.5rem; }
.gallery-page #imageModal .carousel-control-next { right: 0.5rem; }
.gallery-page #imageModal .carousel-control-prev-icon,
.gallery-page #imageModal .carousel-control-next-icon { width: 1.25rem; height: 1.25rem; }

@media (max-width: 991.98px) {
  .gallery-page .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-page .gallery-hero-layout { grid-template-columns: minmax(0, 1fr); }
  .gallery-page .gallery-hero-image { max-width: 650px; }
}
@media (max-width: 575.98px) {
  .gallery-page .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-page .gallery img { transition: none; }
}
