.hdx-photos,
.hdx-main.hdx-photos {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 44px) 110px;
}

.hdx-photos > h1 {
	font-family: 'Newsreader', Georgia, serif;
	font-weight: 700;
	font-size: clamp(36px, 4.6vw, 54px);
	line-height: 1;
	margin: 0 0 12px;
}

.hdx-photos > .hdx-tagline {
	font-size: clamp(14.5px, 1.3vw, 16.5px);
	color: var(--muted);
	margin: 0 0 clamp(34px, 4.6vw, 52px);
}

.hdx-photos__grid,
.hdx-album-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(clamp(210px, 23vw, 270px), 1fr));
	gap: clamp(26px, 3.4vw, 40px) clamp(20px, 2.6vw, 30px);
}

.hdx-album-card {
	display: block;
	cursor: pointer;
	color: var(--ink);
	text-decoration: none;
	animation: fadeUp 0.5s ease both;
}

.hdx-album-card:hover {
	color: var(--ink);
}

.hdx-album-cover {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--thumb);
}

.hdx-album-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--hdx-cover-focus, 50%) 50%;
	display: block;
	transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.hdx-album-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-top: 13px;
}

.hdx-album-title h2 {
	font-family: 'Newsreader', Georgia, serif;
	font-weight: 500;
	font-size: clamp(17px, 1.8vw, 20px);
	line-height: normal;
	margin: 0;
}

.hdx-album-title span {
	font-size: 11.5px;
	letter-spacing: 0.12em;
	color: var(--faint);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.hdx-album-card > p {
	font-size: 11.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--faint);
	margin: 4px 0 0;
}

.hdx-album,
.hdx-main.hdx-album {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 44px) 110px;
}

.hdx-album > .hdx-back-link {
	margin-bottom: clamp(26px, 3.6vw, 40px);
}

.hdx-album__intro,
.hdx-album-meta {
	font-size: 11.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--accent-ink);
	margin: 0 0 16px;
}

.hdx-album > h1 {
	font-family: 'Newsreader', Georgia, serif;
	font-weight: 500;
	font-size: clamp(30px, 4.4vw, 50px);
	line-height: 1.06;
	letter-spacing: -0.01em;
	margin: 0 0 18px;
	max-width: 20ch;
}

.hdx-album-intro {
	font-family: 'Newsreader', Georgia, serif;
	font-size: clamp(15px, 1.4vw, 18px);
	line-height: 1.65;
	color: var(--muted);
	max-width: 60ch;
	margin: 0 0 8px;
}

.hdx-album-intro p {
	margin: 0 0 0.75em;
}

.hdx-album-intro a {
	color: var(--ink);
	text-underline-offset: 3px;
}

.hdx-album-count {
	font-size: 11.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--faint);
	margin: 12px 0 0;
}

.hdx-album-share {
	position: relative;
	display: inline-block;
	margin-top: 18px;
}

.hdx-album-share > button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	appearance: none;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: none;
	padding: 6px 14px;
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: var(--muted);
	cursor: pointer;
}

.hdx-album-share > button:hover,
.hdx-album-share > button[aria-expanded="true"] {
	border-color: var(--muted);
	color: var(--ink);
}

.hdx-album-share .hdx-share-menu {
	left: 0;
	right: auto;
	top: calc(100% + 12px);
	z-index: 40;
}

.hdx-album__masonry,
.hdx-photo-grid {
	column-width: 300px;
	column-gap: 24px;
	margin-top: clamp(30px, 4vw, 46px);
}

.hdx-photo-grid[data-layout="grid"] {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 30px 24px;
	column-width: auto;
}

.hdx-photo-grid[data-layout="grid"] .hdx-photo {
	break-inside: auto;
	margin-bottom: 0;
}

.hdx-photo-grid[data-layout="grid"] .hdx-photo-image {
	aspect-ratio: 4 / 3;
}

.hdx-photo-card,
.hdx-photo {
	width: 100%;
	appearance: none;
	display: block;
	break-inside: avoid;
	margin: 0 0 30px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	cursor: pointer;
	text-align: left;
	animation: fadeUp 0.5s ease both;
}

.hdx-photo-image {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: var(--hdx-ratio, 1.3333);
	overflow: hidden;
	background: var(--thumb);
}

.hdx-photo-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hdx-photo-title {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 11px;
}

.hdx-photo-title small {
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 11px;
	letter-spacing: 0.12em;
	color: var(--accent-ink);
	font-variant-numeric: tabular-nums;
}

.hdx-photo-title strong {
	display: block;
	font-family: 'Newsreader', Georgia, serif;
	font-size: 16.5px;
	font-weight: 400;
	color: var(--ink);
}

.hdx-photo-location {
	display: block;
	margin-top: 3px;
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 10.5px;
	font-style: normal;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--faint);
}

.hdx-photo-credit {
	display: block;
	margin-top: 3px;
	font-size: 11px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.45;
	color: var(--faint);
}

.hdx-lightbox {
	position: fixed;
	inset: 0;
	background: #14130F;
	z-index: 60;
	display: flex;
	flex-direction: column;
	animation: softIn 0.35s ease;
}

.hdx-lightbox-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 32px;
	flex-shrink: 0;
}

.hdx-lightbox-head > span {
	font-size: 12px;
	letter-spacing: 0.2em;
	color: var(--accent-ink);
	font-variant-numeric: tabular-nums;
}

.hdx-lightbox-head > span span,
.hdx-lightbox-total {
	color: #5E594E;
}

.hdx-lightbox-head > button,
.hdx-lightbox-actions > button,
.hdx-lightbox-share > button {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid #38352D;
	background: none;
	color: #C9C2B4;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
}

.hdx-lightbox-head > button:hover,
.hdx-lightbox-actions > button:hover,
.hdx-lightbox-share > button:hover,
.hdx-lightbox-share > button[aria-expanded="true"] {
	border-color: #75705F;
	color: #F4F1EA;
}

.hdx-lightbox-actions {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
}

.hdx-lightbox-share {
	position: relative;
}

.hdx-lightbox-share-menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 5;
	min-width: 190px;
	padding: 7px;
	border: 1px solid #38352D;
	border-radius: 12px;
	background: #1D1C18;
	box-shadow: 0 20px 44px rgba(0, 0, 0, 0.46);
	animation: menuIn 0.16s ease;
}

.hdx-lightbox-share-menu > :is(button, a) {
	width: 100%;
	appearance: none;
	border: 0;
	background: transparent;
	display: flex;
	align-items: center;
	padding: 10px 12px;
	border-radius: 8px;
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 13.5px;
	line-height: 1.25;
	color: #C9C2B4;
	cursor: pointer;
	text-align: left;
	text-decoration: none;
}

.hdx-lightbox-share-menu > :is(button, a):hover,
.hdx-lightbox-share-menu > :is(button, a):focus-visible {
	background: #2A2822;
	color: #F4F1EA;
	outline: none;
}

.hdx-lightbox-stage {
	flex: 1;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
	min-height: 0;
}

.hdx-lightbox-stage > button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.06);
	color: #E7E2D6;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	font-size: 22px;
}

.hdx-lightbox-stage > button:hover {
	background: rgba(255, 255, 255, 0.14);
}

.hdx-lightbox-stage > [data-hdx-lightbox-prev] {
	left: 24px;
}

.hdx-lightbox-stage > [data-hdx-lightbox-next] {
	right: 24px;
}

.hdx-lightbox-stage figure {
	width: 100%;
	height: 100%;
	margin: 0;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	align-items: center;
	justify-items: center;
}

.hdx-lightbox-stage figure > img {
	max-width: min(1100px, 90vw);
	max-height: 70vh;
	object-fit: contain;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.hdx-lightbox-stage figcaption {
	flex-shrink: 0;
	padding: 24px 40px 40px;
	max-width: 900px;
	width: 100%;
	text-align: center;
}

.hdx-lightbox-stage figcaption strong {
	display: block;
	font-family: 'Newsreader', Georgia, serif;
	font-weight: 400;
	font-size: clamp(20px, 2.4vw, 27px);
	color: #F4F1EA;
	margin: 0 0 10px;
}

.hdx-lightbox-stage figcaption small {
	display: block;
	min-height: 1em;
	margin: 0 0 8px;
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #6F695C;
}

.hdx-lightbox-stage figcaption span {
	display: block;
	font-family: 'Newsreader', Georgia, serif;
	font-size: 16px;
	line-height: 1.65;
	color: #8C8678;
	max-width: 60ch;
	margin: 0 auto;
}
