/* Combined New Galleries page: same cards, plus the SmugMug lightbox. */

.ocma-smugmug-frame {
	width: 100%;
	height: 72vh;
	min-height: 480px;
	border: 0;
	background: #0b1f33;
}

.ocma-gallery-note {
	margin: 12px 0 0;
}

.ocma-smugmug-grid .ngg-gallery-thumbnail img {
	width: 240px !important;
	height: 160px !important;
	max-width: 240px !important;
	object-fit: cover;
}

.ocma-smugmug-grid .slideshowlink,
.ocma-smugmug-grid .ngg-navigation {
	clear: both;
}

.ocma-gallery-index .ngg-album-compactbox .Thumb {
	width: 240px;
	height: 160px;
	object-fit: cover;
	display: block;
}

.ocma-gallery-back {
	margin: 0 0 8px;
	font-family: var(--ocma-display);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ocma-gallery-back a {
	color: var(--ocma-navy);
	text-decoration: none;
	border-bottom: 2px solid var(--ocma-orange);
}

.ocma-gallery-back a:hover,
.ocma-gallery-back a:focus {
	color: var(--ocma-orange-dark);
}

.ocma-gallery-title {
	margin: 0 0 8px;
	font-family: var(--ocma-display);
	color: var(--ocma-navy);
}

.ocma-gallery-credit {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.45;
	color: #3d4d63;
}

.ocma-gallery-index .ocma-gallery-credit {
	max-width: 240px;
	margin: 6px 8px 0;
	font-size: 13px;
	line-height: 1.4;
}

.ocma-gallery-detail .ngg-breadcrumbs {
	display: none;
}

.ocma-gallery-note a {
	color: var(--ocma-navy);
}

body.ocma-lightbox-open {
	overflow: hidden;
}

.ocma-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(8, 18, 36, 0.94);
	padding: 48px 72px;
}

.ocma-lightbox[hidden] {
	display: none;
}

.ocma-lightbox__figure {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
}

.ocma-lightbox__figure img {
	display: block;
	max-width: min(1200px, 100%);
	max-height: calc(100vh - 120px);
	width: auto;
	height: auto;
}

.ocma-lightbox__figure figcaption {
	margin-top: 10px;
	text-align: center;
	font-family: var(--ocma-display);
	letter-spacing: 0.08em;
	color: #fff;
}

.ocma-lightbox__close,
.ocma-lightbox__prev,
.ocma-lightbox__next {
	position: absolute;
	border: 0;
	background: transparent;
	color: var(--ocma-gold);
	font-size: 42px;
	line-height: 1;
	cursor: pointer;
	padding: 8px 12px;
}

.ocma-lightbox__close:hover,
.ocma-lightbox__prev:hover,
.ocma-lightbox__next:hover {
	color: var(--ocma-orange);
}

.ocma-lightbox__close {
	top: 12px;
	right: 16px;
}

.ocma-lightbox__prev {
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
}

.ocma-lightbox__next {
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 781px) {
	.ocma-lightbox {
		padding: 56px 12px 24px;
	}

	.ocma-lightbox__prev,
	.ocma-lightbox__next {
		top: auto;
		bottom: 8px;
		transform: none;
	}
}
