/* NINSS album pages — masonry photos, lightbox, more albums */
.na-album {
	--na-navy: #273171;
	--na-navy-deep: #1a2155;
	--na-red: #c8102e;
	--na-sky: #6ec1e4;
	font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--na-navy);
	padding: 48px 20px 88px;
}
.na-wrap { max-width: 1200px; margin: 0 auto; }

/* Toolbar */
.na-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
	padding: 14px 16px;
	background: rgba(255, 255, 255, .7);
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(39, 49, 113, .07);
}
.na-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 14px;
	color: var(--na-navy) !important;
	text-decoration: none !important;
	padding: 8px 14px;
	border-radius: 999px;
	transition: background .25s;
}
.na-back:hover { background: rgba(39, 49, 113, .08); }
.na-back svg { transition: transform .25s; }
.na-back:hover svg { transform: translateX(-3px); }
.na-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.na-chip {
	font-size: 13px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 999px;
	background: #fff;
	color: var(--na-navy);
	box-shadow: inset 0 0 0 1.5px rgba(39, 49, 113, .15);
}
.na-chip.is-year { background: var(--na-red); color: #fff; box-shadow: none; }
.na-album .na-play {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	padding: 9px 18px;
	border-radius: 999px;
	border: 0 !important;
	background: var(--na-navy) !important;
	color: #fff !important;
	cursor: pointer;
	line-height: 1.2;
	box-shadow: 0 8px 18px rgba(39, 49, 113, .25);
	transition: transform .25s, box-shadow .25s;
}
.na-album .na-play:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(39, 49, 113, .32); }
.na-play:focus-visible, .na-back:focus-visible, .na-photo:focus-visible { outline: 3px solid var(--na-sky); outline-offset: 3px; }

/* Masonry */
.na-grid { columns: 3 300px; column-gap: 16px; }
.na-photo {
	position: relative;
	display: block;
	break-inside: avoid;
	margin: 0 0 16px;
	border-radius: 14px;
	overflow: hidden;
	background: #c7d6d2;
	box-shadow: 0 8px 22px rgba(26, 33, 85, .12);
	cursor: zoom-in;
	transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s, opacity .6s;
}
.na-photo img {
	display: block;
	width: 100% !important;
	height: auto !important;
	max-width: none !important;
	transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s;
}
.na-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(20, 25, 66, .55));
	opacity: 0;
	transition: opacity .4s;
}
.na-zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 1;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .95);
	color: var(--na-navy);
	opacity: 0;
	transform: scale(.7);
	transition: opacity .35s, transform .35s;
}
.na-photo:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(26, 33, 85, .22); }
.na-photo:hover img { transform: scale(1.05); filter: saturate(1.12); }
.na-photo:hover::after, .na-photo:focus-visible::after { opacity: 1; }
.na-photo:hover .na-zoom, .na-photo:focus-visible .na-zoom { opacity: 1; transform: none; }

.na-js .na-photo { opacity: 0; transform: translateY(24px); }
.na-js .na-photo.is-in { opacity: 1; transform: none; }
.na-js .na-photo.is-in:hover { transform: translateY(-4px); }

/* More albums */
.na-more { margin-top: 64px; }
.na-more-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}
.na-more h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--na-navy); }
.na-more-head a { font-weight: 600; font-size: 14px; color: var(--na-red) !important; text-decoration: none !important; white-space: nowrap; }
.na-more-head a:hover { text-decoration: underline !important; }
.na-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.na-card {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 16px;
	color: #fff !important;
	text-decoration: none !important;
	background: var(--na-navy-deep);
	box-shadow: 0 10px 26px rgba(26, 33, 85, .15);
	isolation: isolate;
	transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}
.na-card img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	z-index: -2;
	transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.na-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(26, 33, 85, 0) 40%, rgba(20, 25, 66, .9));
}
.na-card:hover { transform: translateY(-6px); box-shadow: 0 20px 38px rgba(26, 33, 85, .28); }
.na-card:hover img { transform: scale(1.08); }
.na-card:focus-visible { outline: 3px solid var(--na-sky); outline-offset: 3px; }
.na-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; }
.na-card-year {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--na-red);
	margin-bottom: 6px;
}
.na-card-title { display: block; font-size: 17px; font-weight: 700; line-height: 1.3; }

/* Lightbox */
.na-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-rows: auto 1fr auto;
	background: rgba(10, 13, 38, .96);
	color: #fff;
	font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility 0s .3s;
}
.na-lb.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.na-lb-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
}
.na-lb-title { font-size: 15px; font-weight: 600; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.na-lb-count { font-size: 14px; opacity: .7; margin-left: 10px; font-variant-numeric: tabular-nums; }
.na-lb-actions { display: flex; gap: 8px; flex-shrink: 0; }
.na-lb button {
	appearance: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0 !important;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1) !important;
	color: #fff !important;
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.na-lb button:hover { background: rgba(255, 255, 255, .22) !important; }
.na-lb button:focus-visible { outline: 3px solid var(--na-sky); outline-offset: 2px; }
.na-lb-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0 72px;
	touch-action: pan-y;
}
.na-lb-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
	transition: opacity .25s, transform .25s;
	user-select: none;
}
.na-lb-img.is-loading { opacity: 0; transform: scale(.98); }
.na-lb .na-lb-prev, .na-lb .na-lb-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
}
.na-lb .na-lb-prev { left: 12px; }
.na-lb .na-lb-next { right: 12px; }
.na-lb-play.is-playing { background: var(--na-red) !important; }
.na-lb-thumbs {
	display: flex;
	gap: 8px;
	padding: 14px 18px 18px;
	overflow-x: auto;
	scrollbar-width: thin;
	justify-content: safe center;
}
.na-lb .na-lb-thumb {
	flex: 0 0 auto;
	width: 64px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
	opacity: .45;
	background: none !important;
	transition: opacity .2s, box-shadow .2s;
}
.na-lb .na-lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.na-lb .na-lb-thumb:hover { opacity: .8; }
.na-lb .na-lb-thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px #fff; }
body.na-lock { overflow: hidden; }

/* Responsive */
@media (max-width: 1024px) {
	.na-more-grid { grid-template-columns: repeat(2, 1fr); }
	.na-more-grid .na-card:nth-child(3) { display: none; }
}
@media (max-width: 767px) {
	.na-album { padding: 28px 16px 64px; }
	.na-bar { padding: 12px; }
	.na-back { padding: 6px 8px; }
	.na-grid { columns: 2; column-gap: 10px; }
	.na-photo { margin-bottom: 10px; border-radius: 10px; }
	.na-zoom { display: none; }
	.na-lb-stage { padding: 0 8px; }
	.na-lb .na-lb-prev, .na-lb .na-lb-next { width: 42px; height: 42px; background: rgba(0, 0, 0, .35) !important; }
	.na-lb-thumb { width: 52px; height: 40px; }
}
@media (max-width: 480px) {
	.na-more-grid { grid-template-columns: 1fr; }
	.na-more-grid .na-card:nth-child(3) { display: block; }
	.na-meta { width: 100%; }
	.na-play { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.na-photo, .na-photo img, .na-card, .na-card img, .na-lb, .na-lb-img { transition: none !important; }
	.na-js .na-photo { opacity: 1; transform: none; }
}
