/* ==========================================================================
   Photo viewer — spec "Chỉnh sửa v1" (Linh, 18 Nov 2026), section "Quy cách chung của cửa sổ xem ảnh lớn".
   ========================================================================== */

/* The small photos that open it: a plain button around the image, nothing changes on hover but the cursor. */
.lk-zoom { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; color: inherit; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.lk-zoom img { display: block; }
.lk-zoom:focus-visible { outline: 1px solid #B89B5E; outline-offset: 4px; }
.ds-strip .lk-zoom { flex: none; scroll-snap-align: start; }

/* Page behind: no scroll while the viewer is open */
html.lk-lb-open, html.lk-lb-open body { overflow: hidden; }

.lk-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(14,26,36,.94); opacity: 0; transition: opacity 400ms ease-out; }
.lk-lb.is-open { opacity: 1; }
.lk-lb[hidden] { display: none; }

.lk-lb__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 16px; transition: opacity 300ms ease-out; }
.lk-lb__stage.is-swapping { opacity: 0; }
.lk-lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.lk-lb__img { display: block; width: auto; height: auto; max-width: calc(100vw - 32px); max-height: 80vh; max-height: 80svh; object-fit: contain; border-radius: 0; box-shadow: none; border: 0; }
@media (min-width: 1024px) { .lk-lb__img { max-width: min(960px, calc(100vw - 32px)); } }

/* Caption: About only — 16px under the photo, Cormorant 14/20, cream, centred */
.lk-lb__cap { margin-top: 16px; max-width: 560px; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: 14px; line-height: 20px; color: #EFE9DF; text-align: center; }
.lk-lb__cap[hidden] { display: none; }
.lk-lb__cap span { display: block; }
.lk-lb__cap-sub { font-style: italic; }

/* Buttons: no background, thin lines; 44 × 44 hit area */
.lk-lb__btn { position: absolute; z-index: 1; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lk-lb__btn[hidden] { display: none; }
.lk-lb__btn:focus { outline: none; }
.lk-lb__btn:focus-visible { outline: 1px solid #B89B5E; outline-offset: 4px; }
.lk-lb__close { top: 8px; right: 8px; color: #EFE9DF; }
.lk-lb__close svg { width: 20px; height: 20px; }
.lk-lb__nav { top: 50%; margin-top: -22px; color: #B89B5E; }
.lk-lb__nav svg { width: 28px; height: 10px; }
.lk-lb__prev { left: 8px; }
.lk-lb__next { right: 8px; }
/* Arrows only where there is a mouse; phones swipe */
@media (hover: none), (pointer: coarse) { .lk-lb__nav { display: none; } }

@media (prefers-reduced-motion: reduce) {
	.lk-lb, .lk-lb__stage { transition: none; }
}
