.pti-gallery{background:var(--background);border-block-start:1px solid var(--line);scroll-margin-top:108px}
.pti-gallery-intro{align-items:end;gap:20px}
.pti-gallery-intro>p{font-size:14px;line-height:1.6;color:var(--stone);margin:0}
.pti-gallery-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.pti-gallery-photo{position:relative;display:block;aspect-ratio:3/4;overflow:hidden;background:var(--mist)}
.pti-gallery-photo>img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.pti-gallery-photo:nth-child(2)>img{object-position:50% 42%}
.pti-gallery-open{position:absolute;inset-inline-end:12px;bottom:12px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#fff;color:var(--navy);box-shadow:0 1px 6px #093c5233}
.pti-gallery-open>.icon{width:15px;height:15px}
.pti-gallery-photo:hover .pti-gallery-open{background:var(--navy);color:#fff}
.pti-gallery-photo:focus-visible{outline-offset:5px}
.pti-gallery-dialog{width:min(1120px,calc(100vw - 32px));height:min(940px,calc(100dvh - 32px));max-width:none;max-height:none;border:1px solid var(--line);padding:0;background:var(--background);color:var(--navy);margin:auto}
.pti-gallery-dialog[open]{display:flex;flex-direction:column}
.pti-gallery-dialog::backdrop{background:#031f2ae6}
.pti-gallery-toolbar{display:flex;align-items:center;gap:16px;padding:8px 16px;min-height:60px;border-block-end:1px solid var(--line)}
.pti-gallery-toolbar>h3{font-size:16px;font-weight:500;margin:0;flex:1}
.pti-gallery-toolbar>span{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.pti-gallery-dialog button{min-width:44px;min-height:44px;padding:10px;display:inline-flex;align-items:center;justify-content:center;gap:10px;background:transparent;color:var(--navy);border:1px solid transparent;font-size:14px;line-height:1.5}
.pti-gallery-dialog button:hover{background:var(--mist)}
.pti-gallery-dialog button:focus-visible{outline:3px solid #9e783e;outline-offset:-3px}
.pti-gallery-dialog .icon{width:18px;height:18px;flex-shrink:0}
.pti-gallery-full-photo{flex:1;min-height:0;display:flex;flex-direction:column;margin:0;padding:16px;gap:12px}
.pti-gallery-full-photo>img{display:block;min-height:0;flex:1;width:100%;height:100%;object-fit:contain}
.pti-gallery-full-photo>figcaption{font-size:14px;line-height:1.5;text-align:center;color:var(--stone);flex-shrink:0}
.pti-gallery-navigation{display:flex;justify-content:space-between;gap:12px;padding:8px 12px;border-block-start:1px solid var(--line)}
.pti-gallery-previous-icon{transform:rotate(180deg)}
[dir=rtl] .pti-gallery-navigation .icon{transform:rotate(180deg)}
[dir=rtl] .pti-gallery-navigation .pti-gallery-previous-icon{transform:none}
@media(max-width:1000px) and (min-width:641px){.pti-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){
 .pti-gallery-intro{align-items:start;flex-direction:column;gap:12px}
 .pti-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .pti-gallery-photo:last-child:nth-child(odd){grid-column:1/-1}
 .pti-gallery-open{inset-inline-end:8px;bottom:8px;width:28px;height:28px}
 .pti-gallery-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px)}
 .pti-gallery-toolbar{padding-inline:12px}
 .pti-gallery-full-photo{padding:12px;gap:10px}
 .pti-gallery-full-photo>figcaption{font-size:13px}
 .pti-gallery-navigation{padding-inline:8px}
 .pti-gallery-dialog button{font-size:13px;gap:8px}
}
