/**
 * Gallery › Photos page (approved v3.3 mockup).
 * Header uses the "gallery" page-header preset. Photos / Videos subnav matches Videos.
 * Album chips + masonry + lightbox. Album labels use dark teal (gold is Donate fill only).
 */
.page-gallery .entry-content > * {
	margin-top: 0;
	margin-bottom: 0;
}

/* Photos / Videos pill bar, same treatment as /gallery/videos/. */
.page-gallery .naggulu-subnav {
	box-sizing: border-box;
	max-width: var(--naggulu-wrap);
	margin: 0 auto;
	padding: 48px var(--naggulu-gutter) 0;
}

.page-gallery .entry-content .naggulu-subnav__list {
	display: inline-flex;
	gap: 8px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--naggulu-line);
	border-radius: 999px;
	box-shadow: var(--naggulu-shadow-sm);
	box-sizing: border-box;
}

.page-gallery .naggulu-subnav__list li {
	flex: none;
	margin: 0;
}

.page-gallery .entry-content .naggulu-subnav .naggulu-subnav__list a:not(.wp-block-button__link) {
	display: block;
	padding: 8px 24px;
	border-radius: 999px;
	color: var(--naggulu-muted);
	font-size: 15px;
	font-weight: 700;
	line-height: 23px;
	white-space: nowrap;
	text-decoration: none;
}

.page-gallery .entry-content .naggulu-subnav .naggulu-subnav__list a:not(.wp-block-button__link):hover {
	color: var(--naggulu-teal-dark);
	text-decoration: underline;
}

.page-gallery .entry-content .naggulu-subnav .naggulu-subnav__list a[aria-current="true"]:not(.wp-block-button__link) {
	background: var(--naggulu-teal-dark);
	color: #fff;
	text-decoration: none;
}

.page-gallery .naggulu-subnav__list a:focus-visible {
	outline: 3px solid var(--naggulu-teal-dark);
	outline-offset: 2px;
}

/* Long title + intro, as in the mockup, a little wider than the default 560px header text. */
.page-gallery .naggulu-ph .naggulu-ph__text,
.page-gallery .naggulu-ph .naggulu-ph__title,
.page-gallery .naggulu-ph .naggulu-ph__intro {
	max-width: 640px;
}

/* This header has a long intro; extend the third shadow (step 2) to it so the halo is not doing all the work. */
.page-gallery .naggulu-ph.has-extra-shadow .naggulu-ph__text .naggulu-ph__intro {
	text-shadow: var(--ph-shadow-strong);
}

/* Soft St. Jude teal wash from the left, same as Contact (0.22). No black halo and
   no heavier overlay. The mobile caption panel stays a solid teal field. */
@media (min-width: 768px) {
	.naggulu-ph.is-preset-gallery .naggulu-ph__media::after {
		content: "";
		position: absolute;
		inset: 0;
		pointer-events: none;
		background: linear-gradient(
			to right,
			rgba(4, 158, 158, 0.22) 0%,
			rgba(4, 158, 158, 0.14) 18%,
			rgba(4, 158, 158, 0.07) 34%,
			rgba(4, 158, 158, 0) 56%
		);
	}
}



.naggulu-gallery {
	box-sizing: border-box;
	max-width: var(--naggulu-wrap);
	margin: 0 auto;
	padding: 26px var(--naggulu-gutter) 80px;
}

.naggulu-gchips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 34px;
}

.page-gallery .entry-content a.naggulu-gchips__chip:not(.wp-block-button__link) {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1.5px solid var(--naggulu-line);
	background: #fff;
	color: var(--naggulu-muted);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.page-gallery .entry-content a.naggulu-gchips__chip:not(.wp-block-button__link):hover {
	color: var(--naggulu-teal-dark);
	text-decoration: underline;
}

.page-gallery .entry-content a.naggulu-gchips__chip.is-current:not(.wp-block-button__link),
.page-gallery .entry-content a.naggulu-gchips__chip[aria-current="true"]:not(.wp-block-button__link) {
	background: var(--naggulu-teal-dark);
	border-color: var(--naggulu-teal-dark);
	color: #fff;
	text-decoration: none;
}

.page-gallery .entry-content a.naggulu-gchips__chip:not(.wp-block-button__link):focus-visible {
	outline: 3px solid var(--naggulu-teal-dark);
	outline-offset: 2px;
}

.naggulu-gmas {
	columns: 3;
	column-gap: 18px;
}

.naggulu-gi {
	break-inside: avoid;
	margin: 0 0 18px;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--naggulu-shadow-sm);
}

.naggulu-gi__link {
	display: block;
	line-height: 0;
}

.naggulu-gi__link:focus-visible {
	outline: 3px solid var(--naggulu-teal-dark);
	outline-offset: 3px;
}

.naggulu-gi img {
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.naggulu-gi figcaption {
	padding: 14px 16px 16px;
}

.naggulu-gi__alb {
	display: inline-block;
	margin-bottom: 4px;
	color: var(--naggulu-teal-dark);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.naggulu-gi figcaption b {
	display: block;
	color: var(--naggulu-teal-dark);
	font-family: var(--naggulu-font-heading, "Playfair Display", serif);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.naggulu-gi figcaption small {
	display: block;
	margin-top: 2px;
	color: var(--naggulu-muted);
	font-size: 13.5px;
	line-height: 1.4;
}

/* Lightbox */
body.naggulu-lb-open {
	overflow: hidden;
}

.naggulu-lb {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(10, 18, 34, 0.96);
}

.naggulu-lb[hidden] {
	display: none;
}

.naggulu-lb__panel {
	display: grid;
	grid-template-columns: 60px 1fr 60px;
	align-items: center;
	gap: 16px;
	width: min(1100px, 100%);
	max-height: 100%;
	color: #fff;
}

.naggulu-lb__img {
	width: 100%;
	max-height: 560px;
	object-fit: contain;
	border-radius: 10px;
	background: #000;
	grid-column: 2;
	grid-row: 1;
}

.naggulu-lb__nav,
.naggulu-lb__close {
	width: 52px;
	height: 52px;
	padding: 0;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	background: transparent;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.naggulu-lb__close {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 28px;
}

.naggulu-lb__nav:hover,
.naggulu-lb__close:hover {
	border-color: #fff;
}

.naggulu-lb__nav:focus-visible,
.naggulu-lb__close:focus-visible,
.naggulu-lb__img:focus-visible,
.naggulu-lb__strip button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.naggulu-lb__prev {
	grid-column: 1;
	grid-row: 1;
}

.naggulu-lb__next {
	grid-column: 3;
	grid-row: 1;
}

.naggulu-lb__cap {
	grid-column: 2;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: flex-end;
	color: #c5d0c8;
	font-size: 14px;
}

.naggulu-lb__cap b {
	display: block;
	color: #fff;
	font-family: var(--naggulu-font-heading, "Playfair Display", serif);
	font-size: 20px;
	font-weight: 600;
}

.naggulu-lb__pos {
	white-space: nowrap;
}

.naggulu-lb__strip {
	grid-column: 2;
	display: flex;
	gap: 8px;
	overflow: auto;
}

.naggulu-lb__strip button {
	flex: none;
	padding: 0;
	border: 0;
	background: none;
	line-height: 0;
	cursor: pointer;
	opacity: 0.55;
	border-radius: 6px;
}

.naggulu-lb__strip button.is-current,
.naggulu-lb__strip button[aria-current="true"] {
	opacity: 1;
	outline: 2px solid var(--naggulu-gold, #c9a24b);
	outline-offset: 1px;
}

.naggulu-lb__strip img {
	width: 90px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
}

@media (max-width: 767px) {
	.naggulu-gmas {
		columns: 2;
		column-gap: 10px;
	}

	.naggulu-gi {
		margin-bottom: 10px;
		border-radius: 12px;
	}

	.naggulu-gi figcaption {
		padding: 10px;
	}

	.naggulu-gi figcaption b {
		font-size: 14px;
	}

	.naggulu-gi figcaption small {
		font-size: 12px;
	}

	.naggulu-lb {
		padding: 14px;
	}

	.naggulu-lb__panel {
		grid-template-columns: 1fr;
	}

	.naggulu-lb__nav {
		display: none;
	}

	.naggulu-lb__img,
	.naggulu-lb__cap,
	.naggulu-lb__strip {
		grid-column: 1;
	}

	.naggulu-lb__cap {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
}
