.gallery-intro{padding-top:32px;padding-bottom:56px}
.gallery-breadcrumb{min-height:44px;display:flex;justify-content:flex-start;gap:14px;font-size:14px;margin-bottom:36px}
.gallery-breadcrumb a{color:#007e6c;text-underline-offset:4px}
.gallery-intro h1{font:400 clamp(2.7rem,5.5vw,5rem)/1.08 "Libre Caslon Display",serif;color:#0b2136;margin:18px 0 24px;letter-spacing:-.025em}
.gallery-intro h1 em{color:#956e27;font-style:normal}
.gallery-intro>p{font-size:19px;max-width:790px;color:#526878;line-height:1.75}
.gallery-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.gallery-links a,.gallery-full,.gallery-contact{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;border-radius:7px;background:#007e6c;color:#fff;font-size:16px;font-weight:700;text-decoration:none}
.gallery-links a{background:#fff;border:1px solid #d9d5ca;color:#0b2136}
.gallery-links a:hover,.gallery-full:hover,.gallery-contact:hover{background:#005f52;color:#fff}
.gallery-group{padding-top:20px;padding-bottom:64px;scroll-margin-top:125px}
.gallery-group>h2,.gallery-closing h2{font:400 clamp(2rem,3.5vw,3rem)/1.15 "Libre Caslon Display",serif;color:#0b2136;margin:14px 0 18px}
.gallery-group>p{font-size:17px;line-height:1.8;color:#526878;max-width:800px}
.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:30px}
.gallery-photo{margin:0;background:#fff;border:1px solid #d9d5ca;border-radius:14px;overflow:hidden;min-width:0}
.gallery-photo>a{display:block;background:#102c46;aspect-ratio:3/4;overflow:hidden}
.gallery-photo img{display:block;width:100%;height:100%;object-fit:contain}
.gallery-photo figcaption{padding:24px}
.gallery-photo h3{font-size:19px;color:#0b2136;margin:0 0 10px}
.gallery-photo p{font-size:16px;line-height:1.7;color:#526878;margin:0 0 20px}
.gallery-materials{grid-template-columns:repeat(3,minmax(0,1fr))}
.gallery-materials .gallery-photo>a{aspect-ratio:1}
.gallery-materials .gallery-photo figcaption{padding:20px}
.gallery-closing{background:#0b2136;color:#e5edf1;padding:56px 0}
.gallery-closing h2{color:#fff}.gallery-closing p{max-width:770px;font-size:17px;line-height:1.8}
.gallery-contact{margin:10px 12px 0 0}.gallery-contact-secondary{background:transparent;border:1px solid #a9bdc8}
.gallery-page footer{padding:30px 0}
.gallery-page a:focus-visible{outline:3px solid #956e27;outline-offset:4px}
@media(max-width:1000px){.gallery-materials{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.gallery-intro{padding-top:18px;padding-bottom:28px}.gallery-breadcrumb{margin-bottom:24px}.gallery-intro>p{font-size:17px}.gallery-grid,.gallery-materials{grid-template-columns:1fr}.gallery-photo figcaption{padding:20px}.gallery-group{padding-bottom:40px}.gallery-links a{width:100%}.gallery-intro h1{font-size:2.8rem}.gallery-contact{display:flex;margin-right:0}}

#midia-profissional,#midia-pessoal,.gallery-photo{scroll-margin-top:125px}
@supports selector(main:has(:target)){
  #midia-pessoal{display:none}
  main:has(#midia-pessoal:target,#midia-pessoal :target) #midia-pessoal{display:block}
  main:has(#midia-pessoal:target,#midia-pessoal :target) #midia-profissional{display:none}
  main:not(:has(#midia-pessoal:target,#midia-pessoal :target)) .media-switch a:first-child,
  main:has(#midia-pessoal:target,#midia-pessoal :target) .media-switch a:nth-child(2){background:#102c46;color:white;border-color:#ac853c}
}

:is(#fotografias, #midia-pessoal) .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
:is(#fotografias, #midia-pessoal) .gallery-photo > a { aspect-ratio: 4 / 3; }
:is(#fotografias, #midia-pessoal) .gallery-photo figcaption { padding: 14px; }
:is(#fotografias, #midia-pessoal) .gallery-photo h3 { font-size: 1rem; }
:is(#fotografias, #midia-pessoal) .gallery-photo p { font-size: .9rem; line-height: 1.5; margin-bottom: .7rem; }
:is(#fotografias, #midia-pessoal) .gallery-full { min-height: 44px; padding: .45rem .65rem; font-size: .875rem; }
#materiais { scroll-margin-top: 125px; }
.gallery-video-links { display: grid; gap: .55rem; padding-left: 1.25rem; }
.gallery-video-links a { color: #005f52; text-underline-offset: .2em; }
.materials-page { margin: 0; font: 1rem/1.55 system-ui, sans-serif; color: #0b2136; background: #f6f3ec; }
.materials-page * { box-sizing: border-box; }
.materials-page .wrap { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.materials-page header { padding-top: 1rem; }
.materials-page .gallery-breadcrumb { margin-bottom: 0; align-items: center; }
.materials-page .gallery-group h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.1; }
@media (max-width: 960px) {
  :is(#fotografias, #midia-pessoal) .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.gallery-page .professional-reel-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
}
.gallery-page .professional-reel-grid .professional-reel { max-width: 220px; }
.gallery-page .professional-reel-grid iframe { height: auto; aspect-ratio: 9 / 16; }
.gallery-page .professional-reel-grid a { font-size: .875rem; }

.gallery-closing {
  --photo-width: clamp(320px, 40vw, 640px);
  min-height: 430px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(to right, #0b2136, #0b2136 15%, transparent 46%) right top / calc(var(--photo-width) + 7rem) 100% no-repeat,
    url('/jordach-inss-20-anos-servico.jpg') right top / var(--photo-width) auto no-repeat,
    #0b2136;
}
.gallery-closing > .wrap { padding-right: clamp(280px, 37vw, 590px); }
@media (max-width: 760px) {
  .gallery-closing {
    --photo-height: clamp(240px, 58vw, 390px);
    padding-top: calc(var(--photo-height) - 1.5rem);
    background:
      linear-gradient(to bottom, transparent 67%, #0b2136) center top / 100% var(--photo-height) no-repeat,
      url('/jordach-inss-20-anos-servico.jpg') center top / min(100%, 600px) auto no-repeat,
      #0b2136;
  }
  .gallery-closing > .wrap { padding-right: 0; }
}
