/* BIMAS Galleria */
.bga.wrap { padding-top: 26px; padding-bottom: 56px; }
.bga-crumb { font: 13px var(--serif); color: #5a6475; margin-bottom: 8px; }
.bga-crumb a { color: var(--blue); }
.bga-h1 { font: 700 44px/1.1 var(--serif); color: var(--ink); margin: 0 0 8px; }
.bga-h1-album { font-size: 38px; margin-top: 6px; }
.bga-lead { font: 16px/1.6 var(--serif); color: #3b4252; max-width: 720px; margin: 0 0 22px; }
.bga-lab { display: inline-block; font: 700 10.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.bga-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.bga-chip { font: 600 13px var(--sans); padding: 8px 16px; border-radius: 999px; border: 1px solid #d6dde8; color: #2a3344; background: #fff; text-decoration: none; }
.bga-chip:hover { border-color: var(--navy); color: var(--navy); }
.bga-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.bga-sp { flex: 1; }
.bga-year select { font: 500 13px var(--sans); border: 1px solid #d6dde8; border-radius: 6px; padding: 8px 12px; color: #2a3344; background: #fff; }

/* Slideshow */
.bga-show { margin-bottom: 34px; }
.bga-stage { position: relative; aspect-ratio: 21 / 9; max-height: 520px; width: 100%; overflow: hidden; background: #0b1220; }
.bga-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.bga-slide.is-on { opacity: 1; visibility: visible; }
.bga-slide .bga-ph { position: absolute; inset: 0; display: block; }
.bga-slide img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
.bga-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 40px 30px; background: linear-gradient(transparent, rgba(5, 15, 40, .9)); color: #fff; pointer-events: none; }
.bga-slide figcaption .bga-lab { color: #9cc3ff; }
.bga-slide h2 { font: 700 34px/1.15 var(--serif); margin: 8px 0 6px; max-width: 900px; }
.bga-slide h2 a { color: #fff; pointer-events: auto; text-decoration: none; }
.bga-slide h2 a:hover { text-decoration: underline; }
.bga-slide figcaption p { margin: 0; font: 15px var(--serif); opacity: .9; }
.bga-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy); font: 700 24px/1 var(--sans); cursor: pointer; z-index: 2; }
.bga-prev { left: 18px; } .bga-next { right: 18px; }
.bga-nav:hover { background: #fff; }
.bga-dots { position: absolute; right: 40px; bottom: 34px; display: flex; gap: 7px; z-index: 2; }
.bga-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .2s; }
.bga-dots button.is-on { background: #fff; width: 24px; }
.bga-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.bga-thumbs button { flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer; opacity: .55; border-radius: 3px; overflow: hidden; outline-offset: 0; }
.bga-thumbs button.is-on { opacity: 1; outline: 3px solid var(--blue); }
.bga-thumbs img { width: 128px; height: 76px; object-fit: cover; display: block; }

/* Event rows */
.bga-event { margin: 0 0 34px; }
.bga-ev-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.bga-ev-head h3 { font: 600 21px/1.25 var(--serif); margin: 2px 0 2px; }
.bga-ev-head h3 a { color: var(--ink); text-decoration: none; }
.bga-ev-head h3 a:hover { color: var(--blue); }
.bga-meta { font: 13px var(--sans); color: #6b7383; margin: 0; }
.bga-meta-lg { font-size: 14px; margin-bottom: 14px; }
.bga-open { font: 600 13px var(--sans); color: var(--blue); white-space: nowrap; text-decoration: none; }
.bga-open:hover { text-decoration: underline; }
.bga-jr { display: grid; gap: 8px; }
.bga-row { display: flex; gap: 8px; }
.bga-row .bga-ph { flex: var(--r) 1 0; aspect-ratio: var(--r); min-width: 0; position: relative; overflow: hidden; border-radius: 3px; background: #e9eef5; display: block; }
.bga-row img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; transition: transform .35s ease; }
.bga-ph:hover img { transform: scale(1.035); }
.bga-ph:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.bga-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 31, 69, .55); color: #fff; font: 700 28px var(--sans); }
.bga-loadwrap { text-align: center; }
.bga-load { display: inline-block; font: 600 14px var(--sans); padding: 12px 28px; border: 1px solid var(--navy); color: var(--navy); border-radius: 4px; text-decoration: none; background: #fff; }
.bga-load:hover { background: var(--navy); color: #fff; }
.bga-empty { font: 16px var(--serif); color: #5a6475; }

/* Single album */
.bga-body { font: 17px/1.7 var(--serif); color: #2a3344; max-width: 820px; margin-bottom: 14px; }
.bga-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.bga-tags span { font: 600 12px var(--sans); background: #eaf2fd; color: var(--navy); padding: 5px 11px; border-radius: 999px; }
.bga-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; font: 600 13px var(--sans); }
.bga-share a, .bga-share button { border: 1px solid #d6dde8; border-radius: 999px; padding: 7px 14px; color: var(--navy); background: #fff; text-decoration: none; font: inherit; cursor: pointer; }
.bga-share a:hover, .bga-share button:hover { border-color: var(--navy); }
.bga-others h2 { font: 600 22px var(--sans); color: var(--ink); margin: 0 0 16px; }
.bga-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 26px; }
.bga-card { position: relative; display: block; color: var(--ink); text-decoration: none; }
.bga-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 3px; }
.bga-card strong { display: block; font: 600 18px/1.3 var(--serif); margin: 10px 0 4px; }
.bga-card:hover strong { color: var(--blue); }
.bga-card small { font: 12.5px var(--sans); color: #6b7383; }
.bga-badge { position: absolute; left: 12px; top: 12px; background: rgba(11, 31, 69, .85); color: #fff; font: 600 12px var(--sans); padding: 5px 10px; border-radius: 999px; }
.bga-back { font: 600 14px var(--sans); color: var(--blue); }

/* Viewer */
.bga-lb { position: fixed; inset: 0; z-index: 100000; background: #060c1c; color: #fff; font-family: var(--sans); display: none; touch-action: none; }
.bga-lb.is-open { display: block; }
.bga-lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 14px; padding: 14px 20px; z-index: 3; background: linear-gradient(rgba(6, 12, 28, .8), transparent); }
.bga-lb-cnt { font: 600 14px var(--sans); opacity: .85; white-space: nowrap; }
.bga-lb-title { font: 600 14px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bga-lb-sp { flex: 1; }
.bga-lb-btn { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.bga-lb-btn:hover, .bga-lb-btn:focus-visible { background: rgba(255, 255, 255, .22); outline: none; }
.bga-lb-btn svg { width: 20px; height: 20px; }
.bga-lb-stage { position: absolute; top: 70px; bottom: 170px; left: 84px; right: 84px; display: grid; place-items: center; overflow: hidden; }
.bga-lb-stage img { position: absolute; inset: 0; margin: auto; max-width: 100% !important; max-height: 100% !important; width: auto !important; height: auto !important; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: transform .25s ease, opacity .2s; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); cursor: zoom-in; }
.bga-lb.is-zoom .bga-lb-stage img { cursor: grab; transition: opacity .2s; }
.bga-lb-arr { position: absolute; top: calc(50% - 70px); width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font: 700 26px/1 var(--sans); cursor: pointer; z-index: 3; }
.bga-lb-arr:hover { background: rgba(255, 255, 255, .25); }
.bga-lb-prev { left: 18px; } .bga-lb-next { right: 18px; }
.bga-lb-cap { position: absolute; bottom: 96px; left: 20px; right: 20px; text-align: center; }
.bga-lb-cap b { font: 600 17px/1.35 var(--serif); display: block; }
.bga-lb-cap span { font: 13px var(--sans); opacity: .72; }
.bga-lb-strip { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.bga-lb-strip button { flex: 0 0 auto; padding: 0; border: 0; background: none; opacity: .45; border-radius: 3px; overflow: hidden; cursor: pointer; }
.bga-lb-strip button.is-on { opacity: 1; outline: 2px solid #fff; }
.bga-lb-strip img { width: 88px; height: 60px; object-fit: cover; display: block; }
.bga-lb-sep { width: 1px; height: 26px; background: rgba(255, 255, 255, .2); flex: 0 0 auto; }
.bga-lb-fb:hover, .bga-lb-fb:focus-visible { background: #1877f2; }
.bga-lb-xx:hover, .bga-lb-xx:focus-visible { background: #000; }
.bga-lb-toast { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); background: #fff; color: var(--navy); font: 600 13px var(--sans); padding: 8px 14px; border-radius: 999px; opacity: 0; transition: opacity .2s; z-index: 4; }
.bga-lb-toast.is-on { opacity: 1; }

@media (max-width: 960px) {
	.bga-stage { aspect-ratio: 16 / 10; }
	.bga-slide h2 { font-size: 26px; }
	.bga-slide figcaption { padding: 70px 20px 22px; }
	.bga-dots { right: 20px; bottom: 22px; }
	.bga-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bga-lb-stage { left: 0; right: 0; top: 64px; bottom: 150px; }
	.bga-lb-arr { display: none; }
}
@media (max-width: 520px) {
	.bga-lb-top { gap: 8px; padding: 12px; }
	.bga-lb-title, .bga-lb-sep { display: none; }
	.bga-lb-btn { width: 38px; height: 38px; }
}
@media (max-width: 640px) {
	.bga-h1 { font-size: 34px; }
	.bga-h1-album { font-size: 28px; }
	.bga-chips { gap: 6px; }
	.bga-chip { padding: 7px 12px; font-size: 12.5px; }
	.bga-sp { flex-basis: 100%; height: 0; }
	.bga-year, .bga-year select { width: 100%; }
	.bga-stage { aspect-ratio: 4 / 3; }
	.bga-nav { display: none; }
	.bga-slide h2 { font-size: 21px; }
	.bga-slide figcaption p { font-size: 13px; }
	.bga-thumbs img { width: 92px; height: 56px; }
	.bga-ev-head { flex-direction: column; align-items: flex-start; gap: 6px; }
	.bga-ev-head h3 { font-size: 18px; }
	.bga-row { gap: 6px; }
	.bga-jr { gap: 6px; }
	.bga-cards { grid-template-columns: 1fr; }
	.bga-lb-top { padding: 10px 12px; gap: 8px; }
	.bga-lb-title { display: none; }
	.bga-lb-btn { width: 38px; height: 38px; }
	.bga-lb-strip img { width: 64px; height: 44px; }
	.bga-lb-cap { bottom: 78px; }
	.bga-lb-cap b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .bga-slide, .bga-row img, .bga-lb-stage img { transition: none; } }
