/* Room album: preserve whole photographs and keep controls comfortable to tap. */
.detail-main,.detail-aside{min-width:0}
.gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;font-size:18px;font-weight:600;flex-wrap:wrap}
.gallery-total{font-size:14px;color:var(--orange-deep);font-weight:500}
.gallery-stage{position:relative;isolation:isolate;border-radius:16px;overflow:hidden;background:#f0eeeb}
.gallery-open{display:block;width:100%;border:0;padding:0;background:transparent;position:relative;cursor:zoom-in;touch-action:pan-y pinch-zoom}
.gallery-open img{width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;user-select:none;-webkit-user-drag:none}
.gallery-demo-tag{position:absolute;top:16px;left:16px;pointer-events:none;background:#fffdf5ee;color:#824420;padding:6px 10px;border-radius:6px;font-size:12px;letter-spacing:.06em;font-weight:600}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:1px solid #ffffff80;background:#ffffffed;color:var(--navy);box-shadow:0 3px 14px #0818451c;transition:background .2s}
.gallery-arrow:hover{background:var(--orange);color:white;border-color:var(--orange)}
.gallery-arrow.previous{left:14px}.gallery-arrow.next{right:14px}
.gallery-expand{position:absolute;bottom:16px;right:16px;display:flex;align-items:center;gap:8px;color:var(--navy);background:#ffffffed;border-radius:7px;padding:9px 13px;font-size:14px;font-weight:600;box-shadow:0 3px 14px #0818451c}
.gallery-counter{position:absolute;bottom:19px;left:16px;padding:5px 11px;border-radius:30px;background:#081845c9;color:white;font-size:14px;pointer-events:none;font-variant-numeric:tabular-nums}
.gallery-description{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin:14px 0;font-size:15px;font-weight:600;line-height:1.6}
.gallery-hint{font-size:13px;font-weight:400;color:var(--muted)}
.gallery-thumbs{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;padding:4px 3px 10px;scrollbar-width:thin;scrollbar-color:#d0bdad transparent}
.gallery-thumb{position:relative;flex:0 0 116px;background:var(--cream);border:2px solid transparent;border-radius:9px;padding:3px;text-align:left;overflow:hidden;color:var(--navy);transition:border-color .2s}
.gallery-thumb img{width:100%;height:69px;object-fit:cover;border-radius:5px}
.gallery-thumb span{display:block;font-size:12px;line-height:1.4;padding:6px 2px 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gallery-thumb.is-active{border-color:var(--orange);background:#fff0e5}
.gallery-thumb:hover{border-color:#f4b18d}
.detail-main .gallery-disclaimer{font-size:13px;line-height:1.7;margin:6px 0 0;color:var(--muted)}
.gallery-is-open{overflow:hidden}
.photo-lightbox{width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#07112aeF;color:white;overflow:hidden}
.photo-lightbox::backdrop{background:#07112a}
.photo-lightbox:not([open]){display:none}
.lightbox-layout{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px;padding:24px max(24px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));max-width:1500px;margin:auto}
.lightbox-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.lightbox-top b{font-size:19px;font-weight:500;display:block}.lightbox-top>div>span{font-size:13px;color:#c3c9d6}
.lightbox-close{display:flex;align-items:center;gap:10px;min-height:46px;padding:6px 16px;background:#ffffff15;color:#fff;border:1px solid #ffffff30;border-radius:8px;font-size:15px;flex-shrink:0}
.lightbox-close>span{font-size:28px;line-height:1}
.lightbox-stage{position:relative;min-height:0;display:grid;place-items:center;touch-action:pan-y pinch-zoom}
.lightbox-stage>img{height:100%;width:100%;object-fit:contain;min-height:0;user-select:none;-webkit-user-drag:none}
.lightbox-stage .gallery-arrow.previous{left:0}.lightbox-stage .gallery-arrow.next{right:0}
.lightbox-bottom{min-width:0;width:min(100%,900px);margin:0 auto}
.photo-lightbox .gallery-description{margin:0 0 10px;color:white}
.photo-lightbox .gallery-hint{color:#c3c9d6}
.photo-lightbox .gallery-thumbs{justify-content:safe center;padding-bottom:3px}
.photo-lightbox .gallery-thumb{background:#ffffff09;color:#e9edf7}
.photo-lightbox .gallery-thumb.is-active{background:#f2662226}
@media(max-width:600px){
 .gallery-heading{font-size:17px;margin-bottom:12px}
 .gallery-total{font-size:13px}
 .gallery-stage{border-radius:12px}
 .gallery-arrow{width:44px;height:44px}
 .gallery-arrow.previous{left:8px}.gallery-arrow.next{right:8px}
 .gallery-demo-tag{top:10px;left:10px;font-size:12px;padding:4px 8px}
 .gallery-expand{bottom:10px;right:10px;padding:7px 9px;font-size:12px;gap:5px}
 .gallery-counter{bottom:11px;left:10px;font-size:13px}
 .gallery-description{margin:12px 0 8px;gap:2px;font-size:14px}
 .gallery-hint{font-size:12px;display:block;width:100%}
 .gallery-thumb{flex-basis:94px}
 .gallery-thumb img{height:56px}
 .gallery-thumbs{gap:8px}
 .lightbox-layout{padding:16px 12px max(16px,env(safe-area-inset-bottom));gap:12px}
 .lightbox-top b{font-size:17px}.lightbox-top>div>span{font-size:12px;line-height:1.4;display:block;margin-top:4px;max-width:230px}
 .lightbox-close{padding:6px 10px;font-size:14px;gap:5px}
 .photo-lightbox .gallery-description{font-size:14px}
}
@media(max-height:530px) and (orientation:landscape){
 .lightbox-layout{padding:10px 20px;gap:8px}
 .photo-lightbox .gallery-thumbs{display:none}
 .lightbox-top>div>span{display:none}
 .lightbox-top b{font-size:16px}.lightbox-close{min-height:40px}
 .photo-lightbox .gallery-description{margin:0;font-size:13px}
}
