/* Registros adicionais: mantém a identidade editorial da galeria existente. */
.gallery .recent-gallery{margin-top:100px;padding-top:46px;border-top:1px solid rgba(255,255,255,.28)}
.gallery .recent-gallery-header{display:grid;grid-template-columns:1fr minmax(180px,320px);align-items:end;gap:34px;margin-bottom:35px}
.gallery .recent-gallery-eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:.16em;color:#aaa;margin-bottom:18px}
.gallery .recent-gallery-header h3{font-size:clamp(38px,5vw,75px);letter-spacing:-.075em;line-height:.99;font-weight:750}
.gallery .recent-gallery-header p{font-size:14px;color:#aaa;max-width:320px;line-height:1.8}
.gallery .recent-gallery-filters{display:flex;flex-wrap:wrap;gap:9px;margin:30px 0}
.gallery .recent-gallery-filters button{border:1px solid #555;background:transparent;color:#e3e3e3;border-radius:999px;padding:12px 17px;font-size:10px;font-weight:750;letter-spacing:.07em;transition:background .2s,color .2s,border-color .2s}
.gallery .recent-gallery-filters button:hover,.gallery .recent-gallery-filters button.is-active{background:#f6f6f4;border-color:#f6f6f4;color:#141414}
.gallery .recent-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.gallery .recent-gallery-grid .recent-gallery-card{position:relative;min-height:0;border-radius:15px;aspect-ratio:3/4;background:#282828;box-shadow:none}
.gallery .recent-gallery-grid .recent-gallery-card a{position:absolute;inset:0;display:block;overflow:hidden}
.gallery .recent-gallery-grid .recent-gallery-card img{width:100%;height:100%;object-fit:cover;filter:grayscale(.25) contrast(1.04);transition:transform .55s ease,filter .55s ease}
.gallery .recent-gallery-grid .recent-gallery-card:hover img{filter:grayscale(0) contrast(1.04);transform:scale(1.055)}
.gallery .recent-gallery-grid .recent-gallery-card figcaption{display:flex;align-items:center;justify-content:space-between;gap:10px;bottom:0;left:0;right:0;padding:30px 14px 15px;background:linear-gradient(0deg,rgba(0,0,0,.8),transparent);font-size:9px;letter-spacing:.08em;text-shadow:0 1px 6px #000;pointer-events:none}
.gallery .recent-gallery-grid .recent-gallery-card:hover figcaption{transform:none}
.gallery .recent-gallery-grid .recent-gallery-card a:focus-visible{outline:3px solid white;outline-offset:-4px;border-radius:15px}
.gallery .recent-gallery-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:26px;color:#aaa;font-size:12px}
.gallery .recent-gallery-more{border:1px solid #aaa;border-radius:999px;background:transparent;color:#fff;padding:14px 21px;display:inline-flex;align-items:center;gap:24px;font-size:11px;font-weight:800;letter-spacing:.07em}
.gallery .recent-gallery-more:not([hidden]):hover{background:#fff;color:#111}
.gallery .recent-gallery-more[hidden]{display:none}
@media(max-width:960px){.gallery .recent-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:710px){.gallery .recent-gallery{margin-top:65px;padding-top:32px}.gallery .recent-gallery-header{grid-template-columns:1fr;gap:18px}.gallery .recent-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gallery .recent-gallery-grid .recent-gallery-card{min-height:0;aspect-ratio:3/4}.gallery .recent-gallery-filters{gap:7px}.gallery .recent-gallery-filters button{padding:10px 12px;font-size:9px}.gallery .recent-gallery-grid .recent-gallery-card figcaption{font-size:8px;padding:24px 10px 12px}.gallery .recent-gallery-footer{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.gallery .recent-gallery-grid .recent-gallery-card img{transition:none}.gallery .recent-gallery-filters button{transition:none}}

/* Destaques fotográficos em rotação, mantendo o mosaico editorial original. */
.gallery .featured-gallery-controls{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:18px 0 0;color:#aaa;font-size:10px;font-weight:750;letter-spacing:.12em}
.gallery .featured-gallery-controls>div{display:flex;gap:9px}
.gallery .featured-gallery-controls button{border:1px solid #555;border-radius:999px;background:transparent;color:#f1f1f1;padding:12px 17px;font:inherit;letter-spacing:.08em;cursor:pointer;transition:background .2s,color .2s}
.gallery .featured-gallery-controls button:hover,.gallery .featured-gallery-controls button:focus-visible{background:#fff;color:#111}
.gallery .featured-gallery-controls button:focus-visible{outline:2px solid #fff;outline-offset:3px}
.gallery .gallery-mosaic figure img{transition:opacity .24s ease,transform .7s ease,filter .7s ease}
.gallery .gallery-mosaic figure img.is-switching{opacity:.45}
/* Link separado do clique para abrir a visualização da foto. */
.gallery .recent-gallery-grid .recent-gallery-card a.recent-gallery-download{position:absolute;inset:auto;top:11px;right:11px;z-index:3;width:auto;height:auto;display:inline-flex;align-items:center;justify-content:center;padding:10px 12px;border:1px solid rgba(255,255,255,.55);border-radius:999px;background:rgba(0,0,0,.70);color:#fff;text-decoration:none;font-size:10px;font-weight:800;letter-spacing:.04em;backdrop-filter:blur(8px);line-height:1.15}
.gallery .recent-gallery-grid .recent-gallery-card a.recent-gallery-download:hover,.gallery .recent-gallery-grid .recent-gallery-card a.recent-gallery-download:focus-visible{background:#fff;color:#111;outline:2px solid #fff;outline-offset:2px}
@media(max-width:710px){.gallery .featured-gallery-controls{align-items:flex-start;flex-direction:column}.gallery .featured-gallery-controls button{padding:10px 13px}.gallery .recent-gallery-grid .recent-gallery-card a.recent-gallery-download{top:8px;right:8px;padding:9px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.gallery .gallery-mosaic figure img.is-switching{opacity:1}.gallery .gallery-mosaic figure img{transition:none}}

/* Mosaico editorial fixo: três imagens com a mesma largura, altura e proporção.
   Escopado para não alterar os cartões e álbuns da galeria de eventos. */
.gallery .gallery-mosaic{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px;
  transition:none;
}
.gallery .gallery-mosaic > figure{
  grid-column:auto;
  width:100%;
  min-width:0;
  height:auto;
  min-height:0!important;
  aspect-ratio:4 / 5;
  margin:0;
}
.gallery .gallery-mosaic > figure > img{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
@media(max-width:760px){
  .gallery .gallery-mosaic{
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px;
  }
}

/* Hover suave do mosaico em destaque: preserva o parallax sem saltos de escala. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .nt-motion .gallery .gallery-mosaic > figure.nt-fig.is-in > img {
    transition: opacity .24s ease, filter .75s ease,
                scale 1050ms cubic-bezier(.22, .61, .36, 1) !important;
  }
  .nt-motion .gallery .gallery-mosaic > figure.nt-fig.is-in:hover > img {
    scale: 1.19;
  }
  /* O transform da rolagem não deve mudar quando o mouse entra na imagem. */
  body.ent-scroll-v2 .gallery .gallery-mosaic > figure:hover > img {
    transform: translate3d(0, var(--ent-media-shift, 0px), 0) scale(1.09) !important;
  }
}
/* Em telas touch, o toque não aciona zoom de hover. */
@media (hover: none), (pointer: coarse) {
  .gallery .gallery-mosaic > figure:hover > img {
    transform: none !important;
  }
  .nt-motion .gallery .gallery-mosaic > figure.nt-fig.is-in:hover > img {
    scale: 1.16;
  }
  body.ent-scroll-v2 .gallery .gallery-mosaic > figure:hover > img {
    transform: translate3d(0, var(--ent-media-shift, 0px), 0) scale(1.09) !important;
  }
}
@media (hover: none) and (max-width: 850px), (pointer: coarse) and (max-width: 850px) {
  body.ent-scroll-v2 .gallery .gallery-mosaic > figure:hover > img {
    transform: translate3d(0, var(--ent-media-shift, 0px), 0) scale(1.065) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery .gallery-mosaic > figure:hover > img { transform: none !important; }
  .nt-motion .gallery .gallery-mosaic > figure.nt-fig.is-in:hover > img {
    scale: 1.16;
  }
}

/* Mobile refinement — photographic editorial experience, optimized for touch. */
@media(max-width:850px){
  /* A panoramic team photo should be seen in full, not cropped into a tall banner. */
  .panorama{
    height:auto;
    min-height:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  .panorama>img{
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:2048 / 650;
    object-fit:contain;
    object-position:center;
    filter:grayscale(1) brightness(.90) contrast(1.05);
  }
  .panorama-shade{display:none}
  .panorama-copy{
    position:relative;
    left:auto;
    top:auto;
    right:auto;
    padding:28px 5% 0;
  }
  .panorama-copy p{
    font-size:clamp(42px,10.2vw,76px);
    line-height:1.01;
    margin-top:20px;
    letter-spacing:-.085em;
  }
  .panorama-caption{
    position:relative;
    bottom:auto;
    right:auto;
    padding:24px 5% 30px;
    font-size:9px;
    line-height:1.5;
    letter-spacing:.1em;
  }
  .gather-head figure{
    width:100%;
    height:auto;
    min-height:0!important;
    aspect-ratio:16 / 10;
    border-radius:20px;
  }
  .gather-head figure img{object-position:50% 45%}
  /* Avoid costly per-frame parallax repaints on touch devices. */
  body.ent-scroll-v2 .gallery-mosaic figure img,
  body.ent-scroll-v2 .gather-head figure img,
  body.ent-scroll-v2 .panorama>img,
  body.ent-scroll-v2 .panorama-copy{
    transform:none!important;
    will-change:auto;
  }
  body.ent-scroll-v2 .panorama{clip-path:none!important;will-change:auto}
  .section-meta{gap:12px}
  .gallery-heading h2,
  .gather-head h2{
    font-size:clamp(44px,9vw,76px);
    line-height:1.04;
  }
}
@media(max-width:760px){
  html,body{overflow-x:clip}
  .section{padding-left:5%;padding-right:5%}
  .gallery-heading{padding-top:50px;padding-bottom:28px}
  .gallery .gallery-mosaic{gap:12px}
  .gallery .gallery-mosaic>figure{
    width:100%;
    min-height:0!important;
    aspect-ratio:4 / 5;
    border-radius:16px;
  }
  .gallery .gallery-mosaic>figure>img{
    object-fit:cover;
    object-position:50% 35%;
  }
  .gallery .gallery-mosaic>figure.gallery-tall>img{object-position:50% 38%}
  .gallery .gallery-mosaic>figure.gallery-small>img{object-position:50% 32%}
  .gallery .gallery-mosaic figcaption{
    left:15px;right:15px;bottom:15px;
    font-size:9px;line-height:1.4;letter-spacing:.09em;
  }
  .gallery .recent-gallery{margin-top:56px;padding-top:30px}
  .gallery .recent-gallery-header{gap:12px;margin-bottom:22px}
  .gallery .recent-gallery-header h3{font-size:clamp(37px,9vw,58px)}
  .gallery .recent-gallery-filters{
    flex-wrap:nowrap;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding-bottom:10px;
  }
  .gallery .recent-gallery-filters::-webkit-scrollbar{display:none}
  .gallery .recent-gallery-filters button{
    flex:0 0 auto;
    min-height:44px;
    white-space:nowrap;
    scroll-snap-align:start;
  }
  .gallery .recent-gallery-grid{gap:10px}
  .gallery .recent-gallery-grid .recent-gallery-card{
    min-height:0!important;
    border-radius:12px;
    aspect-ratio:3 / 4;
  }
  .gallery .recent-gallery-grid .recent-gallery-card img{
    filter:none;
    object-position:center 35%;
    transition:none;
  }
  .gallery .recent-gallery-grid .recent-gallery-card:hover img{
    filter:none;
    transform:none;
  }
  .gallery .recent-gallery-grid .recent-gallery-card a.recent-gallery-download{
    min-height:44px;
    min-width:44px;
    box-sizing:border-box;
  }
  .gather-head{padding-top:48px;padding-bottom:45px}
  .gather-head p{line-height:1.7}
  .nucleus h3{font-size:clamp(20px,5.7vw,25px);overflow-wrap:break-word}
  .feature-card{min-height:300px;padding:24px}
  .gallery-end{gap:18px}
}
@media(max-width:480px){
  .hero{height:auto;min-height:max(640px,100svh);max-height:none}
  .hero-image{top:100px;height:clamp(200px,60vw,290px)}
  .hero-image img{object-fit:contain;object-position:center}
  .hero h1{font-size:clamp(45px,11.5vw,58px);line-height:.95}
  .hero-under{gap:12px}
  .hero-under p{font-size:clamp(14px,4vw,17px)}
  .gallery-heading h2,.gather-head h2{font-size:clamp(43px,10.5vw,56px)}
  .panorama-copy p{font-size:clamp(39px,10.2vw,52px)}
  .gallery .recent-gallery-grid .recent-gallery-card figcaption{
    gap:4px;
    line-height:1.25;
    letter-spacing:.03em;
    font-size:8px;
  }
}
@media(prefers-reduced-motion:reduce){
  .gallery .recent-gallery-filters{scroll-behavior:auto}
}


/* iPhone/Safari: contain the album layout without suppressing filter scrolling. */
@media(max-width:760px){
  html,body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
    -webkit-text-size-adjust:100%;
  }
  .gallery{
    min-width:0;
    max-width:100%;
    overflow-x:clip;
  }
  .gallery .gallery-heading,
  .gallery .gallery-heading>*, 
  .gallery .recent-gallery,
  .gallery .recent-gallery-header,
  .gallery .recent-gallery-header>*{
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }
  .gallery .recent-gallery{
    width:100%;
    overflow-x:clip;
  }
  .gallery .recent-gallery-header{
    width:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr);
  }
  .gallery .recent-gallery-header h3{
    max-width:100%;
    font-size:clamp(34px,8.5vw,55px);
    line-height:1.07;
    letter-spacing:-.055em;
    overflow-wrap:break-word;
  }
  .gallery .recent-gallery-header p{
    width:100%;
    max-width:100%;
    font-size:clamp(14px,3.7vw,16px);
    line-height:1.7;
    overflow-wrap:break-word;
  }
  .gallery .recent-gallery-filters{
    display:flex;
    flex-wrap:nowrap!important;
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    min-width:0;
    overflow-x:auto;
    overflow-y:hidden;
    touch-action:pan-x;
    justify-content:flex-start;
    gap:8px;
    margin:22px 0 26px;
  }
  .gallery .recent-gallery-filters button{
    flex:0 0 auto;
    white-space:nowrap;
    min-height:44px;
    max-width:none;
    padding:11px 14px;
  }
  .gallery .recent-gallery-grid{
    width:100%;
    min-width:0;
    max-width:100%;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .gallery .recent-gallery-grid .recent-gallery-card{
    display:block;
    width:100%;
    min-width:0;
    max-width:100%;
    margin:0;
    height:auto;
    min-height:0!important;
    aspect-ratio:3 / 4;
    overflow:hidden;
  }
  .gallery .recent-gallery-grid .recent-gallery-card>a:first-child{
    inset:0;
    width:100%;
    height:100%;
  }
  .gallery .recent-gallery-grid .recent-gallery-card img{
    display:block;
    width:100%;
    height:100%;
    max-width:100%;
    object-fit:cover;
    object-position:center 28%;
  }
  .gallery .recent-gallery-footer{
    min-width:0;
    max-width:100%;
  }
}
@media(max-width:380px){
  .gallery .recent-gallery-grid{gap:8px}
  .gallery .recent-gallery-grid .recent-gallery-card a.recent-gallery-download{
    top:6px;right:6px;padding:8px;font-size:8px;
  }
}
