.place-gallery{margin:0 -27px 25px;background:#e8e0d4}
.place-gallery-feature{margin:0}
.place-gallery-open{position:relative;display:block;width:100%;padding:0;border:0;background:#282522;color:#fff;text-align:left}
.place-gallery-open img{display:block;width:100%;height:190px;object-fit:cover}
.place-gallery-open-label{position:absolute;right:10px;bottom:10px;padding:6px 9px;background:#171a18df;color:#fff;font:9px var(--mono)}
.place-gallery-open:hover .place-gallery-open-label,.place-gallery-open:focus-visible .place-gallery-open-label{background:var(--rust)}
.place-gallery-feature figcaption{display:flex;flex-wrap:wrap;gap:3px 10px;align-items:baseline;padding:9px 27px 11px;color:#4a4139;font:9px/1.5 var(--mono)}
.place-gallery-feature figcaption span{flex:1 1 100%;font-weight:700}
.place-gallery-feature figcaption small{font-size:8px;color:#696259}
.place-gallery-feature figcaption a{font-size:8px;color:var(--rust)}
.place-gallery-thumbs{display:flex;gap:6px;overflow-x:auto;padding:0 27px 12px;scrollbar-width:thin}
.place-gallery-thumbs button{flex:0 0 74px;width:74px;height:54px;padding:0;border:2px solid transparent;background:#c3b9aa}
.place-gallery-thumbs button:first-child{border-color:var(--rust)}
.place-gallery-thumbs button:hover,.place-gallery-thumbs button:focus-visible{border-color:var(--rust)}
.place-gallery-thumbs img{display:block;width:100%;height:100%;object-fit:cover}
.mars-gallery-dialog{width:min(1120px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:1px solid #55554e;background:#171a18;color:#f3f0e7;box-shadow:0 25px 90px #000b}
.mars-gallery-dialog::backdrop{background:#050706dc}
.mars-gallery-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 26px);min-height:min(680px,calc(100dvh - 26px))}
.mars-gallery-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 20px;border-bottom:1px solid #444941}
.mars-gallery-kicker{margin:0 0 4px;color:#c59b86;font:8px var(--mono);letter-spacing:.13em}
.mars-gallery-title{margin:0;color:#fff4e9;font-size:20px;font-weight:600;letter-spacing:-.04em}
.mars-gallery-header-actions{display:flex;align-items:center;gap:8px}
.mars-gallery-back{min-height:36px;padding:7px 10px;border:1px solid #777b70;background:transparent;color:#f3f0e7;font:9px var(--mono);white-space:nowrap}
.mars-gallery-back:hover{border-color:#d58b6d;background:#573125}
.mars-gallery-close{align-self:flex-start;width:36px;height:36px;border:1px solid #777b70;background:transparent;color:#fff;font-size:25px;line-height:1}
.mars-gallery-close:hover{background:var(--rust);border-color:var(--rust)}
.mars-gallery-photo-view{display:flex;flex:1;min-height:0;flex-direction:column}
.mars-gallery-image-wrap{display:flex;flex:1;min-height:180px;align-items:center;justify-content:center;overflow:hidden;background:#090b0a}
.mars-gallery-image{display:block;width:100%;height:100%;max-height:calc(100dvh - 260px);object-fit:contain}
.mars-gallery-info{display:grid;grid-template-columns:auto 1fr auto;gap:5px 18px;align-items:baseline;padding:12px 20px 6px}
.mars-gallery-counter{grid-row:1/3;color:#c59b86;font:10px var(--mono);white-space:nowrap}
.mars-gallery-caption{margin:0;font-size:12px;line-height:1.5}
.mars-gallery-credit{grid-column:2;margin:0;color:#aeb5a8;font:9px/1.5 var(--mono)}
.mars-gallery-source{grid-column:3;grid-row:1/3;color:#edaa8a;font:9px var(--mono);white-space:nowrap}
.mars-gallery-controls{display:flex;justify-content:space-between;gap:12px;padding:11px 20px 16px}
.mars-gallery-controls button,.mars-gallery-fly{min-height:34px;padding:7px 12px;border:1px solid #777b70;background:transparent;color:#f3f0e7;font:9px var(--mono)}
.mars-gallery-controls button:hover,.mars-gallery-fly:hover{border-color:#d58b6d;background:#573125}
.mars-gallery-atlas-view{min-height:0;overflow-y:auto;padding:18px 20px 24px}
.mars-gallery-atlas-intro{margin:0 0 18px;color:#bdc1b7;font-size:11px}
.mars-gallery-atlas-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.mars-gallery-atlas-card{display:flex;min-width:0;flex-direction:column;border:1px solid #444941;background:#222622}
.mars-gallery-atlas-card>button:first-child{display:block;width:100%;padding:0;border:0;background:transparent;color:#fff;text-align:left}
.mars-gallery-atlas-card img{display:block;width:100%;height:130px;object-fit:cover}
.mars-gallery-atlas-card strong{display:block;padding:8px 10px;font-size:11px;line-height:1.4}
.mars-gallery-kind{display:block;padding:0 10px 10px;color:#b5c0ad;font:8px/1.4 var(--mono)}
.mars-gallery-fly{margin:0 10px 10px;align-self:flex-start}
.mars-gallery-atlas-card>button:first-child:hover strong{text-decoration:underline;text-underline-offset:3px}
@media(max-width:900px){.place-gallery{margin-left:-22px;margin-right:-22px}.place-gallery-feature figcaption{padding-left:22px;padding-right:22px}.place-gallery-thumbs{padding-left:22px;padding-right:22px}}
@media(max-width:700px){.place-gallery{margin-left:-20px;margin-right:-20px}.place-gallery-feature figcaption{padding-left:20px;padding-right:20px}.place-gallery-thumbs{padding-left:20px;padding-right:20px}.mars-gallery-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.mars-gallery-shell{max-height:calc(100dvh - 14px);min-height:0;height:calc(100dvh - 14px)}.mars-gallery-header{padding:11px 13px}.mars-gallery-title{font-size:17px}.mars-gallery-image{max-height:none}.mars-gallery-info{grid-template-columns:auto 1fr;gap:4px 10px;padding:10px 13px}.mars-gallery-counter{grid-row:1/4}.mars-gallery-credit{grid-column:2}.mars-gallery-source{grid-column:2;grid-row:auto}.mars-gallery-controls{padding:9px 13px 12px}.mars-gallery-atlas-view{padding:14px 13px}.mars-gallery-atlas-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mars-gallery-atlas-card img{height:110px}}
@media(max-width:390px){.mars-gallery-atlas-grid{grid-template-columns:1fr}.mars-gallery-atlas-card img{height:170px}}
@media(prefers-reduced-motion:reduce){.place-gallery *,.mars-gallery-dialog *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
