/* artiMedia case study viewer. Stage in deep night, gold for focus and the current thumbnail. */
.amcs-lb { cursor: zoom-in; display: block; }
.amcs-lb img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.amcs-lb:hover img, .amcs-lb:focus-visible img { transform: scale(1.025); }
.amcs-lb:focus-visible { outline: 3px solid #e8c38f; outline-offset: 4px; }
.amcs-chart .amcs-lb { overflow: hidden; border-radius: inherit; }

html.amcs-view-on { overflow: hidden; }
.amcs-view {
	position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	background: #1a1730; color: #fff; display: none; grid-template-rows: auto minmax(0, 1fr) auto auto; overflow: hidden;
	font-family: Inter, -apple-system, "Segoe UI", sans-serif;
}
.amcs-view[open] { display: grid; animation: amcs-view-in .3s ease both; }
.amcs-view.is-closing { animation: amcs-view-out .32s ease both; }
.amcs-view::backdrop { background: transparent; }
@keyframes amcs-view-in { from { background-color: rgba(26, 23, 48, 0); } to { background-color: #1a1730; } }
@keyframes amcs-view-out { from { background-color: #1a1730; } to { background-color: rgba(26, 23, 48, 0); } }
.amcs-view.is-closing .amcs-view-top, .amcs-view.is-closing .amcs-view-foot, .amcs-view.is-closing .amcs-view-strip { opacity: 0; transition: opacity .15s ease; }

/* top bar */
.amcs-view-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; }
.amcs-view-count { margin: 0; font-size: 15px; font-weight: 500; color: #e8c38f; font-variant-numeric: tabular-nums; }
.amcs-view-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.amcs-view-btn {
	display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
	background: rgba(255, 255, 255, 0.1); color: #fff; font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.amcs-view-btn:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.amcs-view-btn:active { transform: scale(.96); }
.amcs-view-btn[aria-pressed="true"] { background: #e8c38f; color: #2b274c; }
.amcs-view-close { width: 44px; padding: 0; justify-content: center; background: #ee4266; }
.amcs-view-close:hover { background: #d93259; }
.amcs-view svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* stage */
.amcs-view-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 8px 88px; overflow: hidden; touch-action: none; }
.amcs-view-img {
	max-width: none; max-height: none; object-fit: contain; border-radius: 14px; background: #fff;
	cursor: zoom-in; user-select: none; -webkit-user-select: none; transform-origin: 50% 50%; will-change: transform;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.amcs-view.is-zoomed .amcs-view-img { cursor: grab; border-radius: 0; }
.amcs-view.is-zoomed .amcs-view-img:active { cursor: grabbing; }
.amcs-view-img.from-r { animation: amcs-slide-r .38s cubic-bezier(.2,.8,.2,1); }
.amcs-view-img.from-l { animation: amcs-slide-l .38s cubic-bezier(.2,.8,.2,1); }
@keyframes amcs-slide-r { from { opacity: 0; translate: 48px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes amcs-slide-l { from { opacity: 0; translate: -48px 0; } to { opacity: 1; translate: 0 0; } }

/* caption + arrows */
.amcs-view-foot { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 16px; max-width: 1100px; width: 100%; margin: 0 auto; padding: 14px 24px 8px; }
.amcs-view-cap { grid-column: 2; margin: 0; text-align: center; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.amcs-view-nav {
	width: 56px; height: 56px; border: 0; border-radius: 50%; background: #fff; color: #2b274c; display: flex; align-items: center; justify-content: center;
	cursor: pointer; transition: transform .2s ease, background-color .2s ease;
}
.amcs-view-nav:hover { background: #e8c38f; }
.amcs-view-nav:active { transform: scale(.94); }
.amcs-view-prev { grid-column: 1; }
.amcs-view-next { grid-column: 3; }
.amcs-view-nav svg { width: 22px; height: 22px; stroke-width: 2.4; }
.amcs-view.is-zoomed .amcs-view-nav { opacity: .35; pointer-events: none; }

/* thumbnail strip */
.amcs-view-strip { display: flex; justify-content: center; gap: 10px; padding: 10px 24px 20px; overflow-x: auto; scrollbar-width: none; }
.amcs-view-strip::-webkit-scrollbar { display: none; }
.amcs-view-thumb { flex: none; width: 76px; height: 52px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #2b274c; cursor: pointer; opacity: .45; transition: opacity .2s ease, transform .2s ease; }
.amcs-view-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amcs-view-thumb:hover { opacity: .8; }
.amcs-view-thumb[aria-selected="true"] { opacity: 1; transform: translateY(-3px); box-shadow: 0 0 0 3px #e8c38f; }

.amcs-view button:focus-visible, .amcs-view a:focus-visible { outline: 3px solid #e8c38f; outline-offset: 3px; }

@media (max-width: 767px) {
	.amcs-view-top { padding: 12px 16px; }
	.amcs-view-btn span { display: none; }
	.amcs-view-btn { width: 44px; padding: 0; justify-content: center; }
	.amcs-view-stage { padding: 4px 12px; }
	.amcs-view-img { border-radius: 10px; }
	.amcs-view-foot { grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 10px; padding: 12px 16px max(16px, env(safe-area-inset-bottom)); }
	.amcs-view-nav { width: 48px; height: 48px; }
	.amcs-view-cap { font-size: 14px; }
	.amcs-view-strip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.amcs-view[open], .amcs-view.is-closing, .amcs-view-img.from-r, .amcs-view-img.from-l { animation: none; }
	.amcs-lb img, .amcs-view-btn, .amcs-view-nav, .amcs-view-thumb { transition: none; }
}
