.ba-photo-frame{display:block;position:relative;min-width:0;overflow:hidden;border-radius:12px;line-height:0}.ba-photo-frame>img{display:block;width:100%;margin:0}.ba-photo-zoom{cursor:zoom-in}.ba-photo-zoom:focus-visible{outline:3px solid #4389ff;outline-offset:3px}.detail-card>.ba-photo-cover{background:var(--soft);width:100%;aspect-ratio:16/9}.detail-card>.ba-photo-cover>img{width:100%;height:100%;object-fit:contain}.trip-card .ba-photo-frame{border-radius:0}.trip-card .ba-photo-frame>img{aspect-ratio:4/3;object-fit:cover}.ba-photo-frame>.trip-hero{margin:0}.ba-photo-frame:has(>.trip-hero){margin:22px 0 8px;border-radius:20px}.ba-photo-mark,.ba-view-mark{position:absolute;right:calc(var(--ba-mark-right,0px) + 5px);bottom:calc(var(--ba-mark-bottom,0px) + 5px);padding:3px 5px;color:#fff;background:#0009;border-radius:3px;font:500 clamp(7px,.72vw,12px)/1.2 system-ui,sans-serif;letter-spacing:0;text-shadow:0 1px 2px #000;pointer-events:none;white-space:nowrap;max-width:calc(100% - 10px);box-sizing:border-box}.gallery-grid .ba-photo-mark{font-size:clamp(7px,.55vw,10px);padding:2px 3px;right:calc(var(--ba-mark-right,0px) + 2px);bottom:calc(var(--ba-mark-bottom,0px) + 2px)}
.ba-photo-dialog{box-sizing:border-box;position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;padding:clamp(12px,2vw,28px);background:#080a10;color:white;z-index:99999;overflow:hidden}.ba-photo-dialog[open]{display:grid;grid-template-rows:48px minmax(0,1fr) minmax(28px,auto);gap:12px}.ba-photo-dialog::backdrop{background:#080a10}.ba-view-top{display:flex;justify-content:space-between;align-items:center}.ba-view-count,.ba-view-caption{font:500 14px/1.5 system-ui,sans-serif;color:#e2e5ec}.ba-view-caption{text-align:center;max-height:12vh;overflow:auto;white-space:pre-wrap}.ba-view-stage{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;justify-items:center;min-height:0;gap:12px}.ba-view-picture{position:relative;display:flex;justify-content:center;align-items:center;max-width:100%;max-height:100%;min-width:0;min-height:0;width:max-content;height:max-content}.ba-view-image{display:block;max-width:100%;max-height:calc(100dvh - 160px);width:auto;height:auto;object-fit:contain;border-radius:4px}.ba-view-mark{font-size:clamp(11px,1.1vw,16px);right:10px;bottom:10px;padding:5px 8px}.ba-photo-dialog button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #ffffff36;background:#ffffff12;color:#fff;border-radius:50%;font:400 32px/1 system-ui,sans-serif;cursor:pointer}.ba-photo-dialog button:hover{background:#ffffff30}.ba-photo-dialog button:focus-visible{outline:2px solid #fff;outline-offset:3px}.ba-photo-dialog [hidden]{display:none!important}.ba-view-prev{grid-column:1;grid-row:1}.ba-view-picture{grid-column:2;grid-row:1}.ba-view-next{grid-column:3;grid-row:1}@media(max-width:600px){.ba-view-stage{grid-template-columns:32px minmax(0,1fr) 32px;gap:3px}.ba-photo-dialog button{width:34px;height:34px}.ba-view-image{max-height:calc(100dvh - 155px)}.ba-view-mark{right:4px;bottom:4px;font-size:10px}}

/* V6.9: copyright is embedded in the uploaded image. */
.ba-photo-mark,.ba-view-mark{display:none!important}

/* V6.14: natural cover dimensions, no letterbox or artificial background. */
.detail-card > .ba-photo-cover, .detail-card > .ba-photo-cover:has(>img) { display:block; width:100%; height:auto; aspect-ratio:auto; background:transparent; line-height:0; }
.detail-card > .ba-photo-cover > img, .detail-card > img, .cards > .card > img { display:block; width:auto; max-width:100%; height:auto; max-height:360px; aspect-ratio:auto; object-fit:contain; object-position:center; background:transparent; margin:0 auto; border-radius:12px; }
.detail-card > .ba-photo-cover { width:fit-content; max-width:100%; margin:0 auto; }
.trip-card .ba-photo-frame { background:transparent; }
