.hvv-single-photo {
	width: 100%;
	overflow-x: hidden;
}

/* Page header (teal bar + archive title) */
.hvv-single-photo__page-header {
	display: flex;
	align-items: center;
	gap: 70px;
	padding: 100px 80px 0 0;
	margin-bottom: 64px;
}

.hvv-single-photo__bar {
	width: 111px;
	height: 10px;
	background: #1A8DA1;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
	display: block;
	flex-shrink: 0;
}

.hvv-single-photo__archive-title {
	margin: 0;
	color: #000;
	font-family: Montserrat, sans-serif;
	font-size: 40px;
	font-weight: 700;
	letter-spacing: 1.6px;
	line-height: normal;
	text-transform: uppercase;
}

.hvv-single-photo__wrap {
	max-width: 1760px;
	margin: 0 auto;
	padding: 0 181px 0 181px;
	box-sizing: border-box;
}

/* Heading */
.hvv-single-photo__heading {
	margin-bottom: 32px;
}

.hvv-single-photo__title {
	margin: 0 0 12px 0;
	color: #000;
	font-family: Montserrat, sans-serif;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0.96px;
	line-height: 1.25;
	text-transform: uppercase;
}

.hvv-single-photo__date {
	margin: 0;
	color: #1A8DA1;
	font-family: Montserrat, sans-serif;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0.96px;
	line-height: normal;
}

.hvv-single-photo__description {
	margin-bottom: 60px;
	color: #000;
	font-family: Montserrat, sans-serif;
	font-size: 24px;
	font-weight: 400;
	letter-spacing: 0.96px;
	line-height: 1.35;
}

.hvv-single-photo__description p {
	margin: 0 0 18px 0;
}

.hvv-single-photo__description p:last-child {
	margin-bottom: 0;
}

/* Gallery */
.hvv-single-photo__gallery {
	display: flex;
	flex-direction: column;
	gap: 48px;
	margin-bottom: 80px;
}

.hvv-single-photo__gallery-group {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 32px;
}

.hvv-single-photo__slot {
	position: relative;
	display: block;
	border-radius: 26px;
	overflow: hidden;
	background: #f0f0f0;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: zoom-in;
}

.hvv-single-photo__slot:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.hvv-single-photo__slot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Hero: full width, ~692/1558 ratio */
.hvv-single-photo__slot--hero {
	grid-column: 1 / -1;
	aspect-ratio: 1558 / 692;
}

/* Row of 3: each spans 2 of 6 columns, ~509/427 ratio (portrait-ish) */
.hvv-single-photo__slot--triple {
	grid-column: span 2;
	aspect-ratio: 427 / 509;
}

/* Row of 2: each spans 3 of 6 columns, ~400/740 ratio (landscape) */
.hvv-single-photo__slot--double {
	grid-column: span 3;
	aspect-ratio: 740 / 400;
}

/* Share */
.hvv-single-photo__share {
	margin: 0 auto 120px;
}

.hvv-single-photo__share-title {
	margin: 0 0 20px;
	color: #ADAAAA;
	font-family: Montserrat, sans-serif;
	font-size: 27px;
	font-weight: 700;
	line-height: normal;
	text-transform: uppercase;
}

.hvv-single-photo__share-icons {
	display: flex;
	align-items: center;
	gap: 30px;
}

.hvv-single-photo__share-icon,
.hvv-single-photo__share-icon:link,
.hvv-single-photo__share-icon:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	text-decoration: none;
	transition: transform 0.3s ease, color 0.3s ease;
}

.hvv-single-photo__share-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.hvv-single-photo__share-icon:hover { transform: translateY(-2px); }

.hvv-single-photo__share-icon--fb,
.hvv-single-photo__share-icon--fb:link,
.hvv-single-photo__share-icon--fb:visited { color: #1877F2; }

.hvv-single-photo__share-icon--ig,
.hvv-single-photo__share-icon--ig:link,
.hvv-single-photo__share-icon--ig:visited { color: #E4405F; }

/* RESPONSIVE */

@media screen and (max-width: 1399px) {
	.hvv-single-photo__wrap {
		padding-left: 80px;
		padding-right: 80px;
	}
}

@media screen and (max-width: 1199px) {
	.hvv-single-photo__page-header {
		padding: 60px 40px 0 0;
		gap: 40px;
	}
	.hvv-single-photo__wrap {
		padding-left: 40px;
		padding-right: 40px;
	}
	.hvv-single-photo__gallery-group {
		gap: 20px;
	}
}

/* LIGHTBOX */

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

.hvv-photo-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.92);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 60px 80px 40px;
	box-sizing: border-box;
}

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

.hvv-photo-lightbox__close {
	position: absolute;
	top: 24px;
	right: 32px;
	width: 48px;
	height: 48px;
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.2s ease, color 0.2s ease;
}

.hvv-photo-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #1A8DA1;
}

.hvv-photo-lightbox__main {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1;
	min-height: 0;
}

.hvv-photo-lightbox__nav {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	background: rgba(255, 255, 255, 0.1);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.hvv-photo-lightbox__nav:hover {
	background: #1A8DA1;
	color: #fff;
}

.hvv-photo-lightbox__nav.swiper-button-disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

.hvv-photo-lightbox__swiper {
	flex: 1;
	min-width: 0;
	height: 100%;
	max-height: calc(100vh - 280px);
}

.hvv-photo-lightbox__slide {
	display: flex !important;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.hvv-photo-lightbox__slide img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 16px;
	display: block;
}

.hvv-photo-lightbox__thumbs {
	margin-top: 24px;
	flex-shrink: 0;
	padding: 0 80px;
	box-sizing: border-box;
}

.hvv-photo-lightbox__thumb {
	width: 110px !important;
	height: 80px;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.25s ease, transform 0.25s ease;
	border: 2px solid transparent;
	box-sizing: border-box;
}

.hvv-photo-lightbox__thumb:hover {
	opacity: 0.85;
}

.hvv-photo-lightbox__thumb.swiper-slide-thumb-active {
	opacity: 1;
	border-color: #1A8DA1;
	transform: scale(1.04);
}

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

@media screen and (max-width: 1199px) {
	.hvv-photo-lightbox {
		padding: 48px 24px 24px;
	}
	.hvv-photo-lightbox__thumbs {
		padding: 0 24px;
	}
}

@media screen and (max-width: 768px) {
	.hvv-photo-lightbox {
		padding: 60px 8px 16px;
	}
	.hvv-photo-lightbox__close {
		top: 12px;
		right: 12px;
	}
	.hvv-photo-lightbox__main {
		gap: 4px;
	}
	.hvv-photo-lightbox__nav {
		width: 40px;
		height: 40px;
	}
	.hvv-photo-lightbox__nav svg {
		width: 40px;
		height: 40px;
	}
	.hvv-photo-lightbox__thumbs {
		padding: 0;
		margin-top: 16px;
	}
	.hvv-photo-lightbox__thumb {
		width: 72px !important;
		height: 54px;
	}
}

@media screen and (max-width: 768px) {
	.hvv-single-photo__page-header {
		padding: 40px 20px 0 0;
		gap: 16px;
		margin-bottom: 32px;
	}
	.hvv-single-photo__bar {
		width: 48px;
		height: 8px;
	}
	.hvv-single-photo__archive-title {
		font-size: 28px;
		letter-spacing: 1.12px;
	}
	.hvv-single-photo__wrap {
		padding-left: 20px;
		padding-right: 20px;
	}
	.hvv-single-photo__title,
	.hvv-single-photo__date {
		font-size: 18px;
	}
	.hvv-single-photo__description {
		font-size: 18px;
		margin-bottom: 40px;
	}
	.hvv-single-photo__gallery {
		gap: 24px;
		margin-bottom: 48px;
	}
	.hvv-single-photo__gallery-group {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.hvv-single-photo__slot--hero,
	.hvv-single-photo__slot--double {
		grid-column: 1 / -1;
	}
	.hvv-single-photo__slot--triple {
		grid-column: span 1;
	}
	.hvv-single-photo__share { margin-bottom: 60px; }
	.hvv-single-photo__share-title { font-size: 22px; }
}

/* ----- Figma "Медіатека відкриття блоку моб" (390px wide) ----- */
@media screen and (max-width: 640px) {
	/* Page header: bar 34×3 teal + "фото" 12px Bold gray */
	.hvv-single-photo__page-header {
		padding: 24px 20px 0 0 !important;
		gap: 16px !important;
		margin-bottom: 0 !important;
		align-items: center !important;
	}
	.hvv-single-photo__bar {
		width: 34px !important;
		height: 3px !important;
		border-top-right-radius: 10px !important;
		border-bottom-right-radius: 10px !important;
		border-top-left-radius: 0 !important;
		border-bottom-left-radius: 0 !important;
		background: #1A8DA1 !important;
		flex-shrink: 0 !important;
	}
	.hvv-single-photo__archive-title {
		font-size: 12px !important;
		font-weight: 700 !important;
		letter-spacing: 0.48px !important;
		color: #393737 !important;
		text-transform: uppercase !important;
		line-height: 1.2 !important;
	}

	/* Content wrap — 20px side padding */
	.hvv-single-photo__wrap {
		padding: 24px 20px 0 !important;
		max-width: 100% !important;
	}

	/* Heading: date (teal) above title (black uppercase) */
	.hvv-single-photo__heading {
		display: flex !important;
		flex-direction: column !important;
		gap: 6px !important;
		margin: 0 0 14px !important;
		padding: 0 !important;
	}
	.hvv-single-photo__date {
		font-size: 11px !important;
		font-weight: 600 !important;
		color: #1A8DA1 !important;
		letter-spacing: 0.44px !important;
		margin: 0 !important;
		order: -1;
	}
	.hvv-single-photo__title {
		font-size: 12px !important;
		font-weight: 600 !important;
		color: #000 !important;
		text-transform: uppercase !important;
		letter-spacing: 0.48px !important;
		line-height: 1.3 !important;
		margin: 0 !important;
	}

	.hvv-single-photo__description {
		font-size: 11px !important;
		font-weight: 400 !important;
		color: #000 !important;
		line-height: 1.4 !important;
		letter-spacing: 0.44px !important;
		margin: 0 0 16px !important;
		padding: 0 !important;
		max-width: 100% !important;
	}
	.hvv-single-photo__description p {
		margin: 0 0 12px !important;
	}
	.hvv-single-photo__description p:last-child { margin: 0 !important; }

	/* Gallery: hero full-width, others in 2-col grid 168×112 */
	.hvv-single-photo__gallery {
		display: flex !important;
		flex-direction: column !important;
		gap: 10px !important;
		margin: 0 0 24px !important;
		padding: 0 !important;
	}
	.hvv-single-photo__gallery-group {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 14px !important;
	}
	.hvv-single-photo__slot {
		border-radius: 6px !important;
		overflow: hidden !important;
		margin: 0 !important;
	}
	.hvv-single-photo__slot--hero {
		grid-column: 1 / -1 !important;
		aspect-ratio: 350 / 199 !important;
	}
	.hvv-single-photo__slot--triple,
	.hvv-single-photo__slot--double {
		grid-column: span 1 !important;
		aspect-ratio: 168 / 112 !important;
	}
	.hvv-single-photo__slot img {
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
		border-radius: 6px !important;
	}

	/* Share — "поділитися" gray Bold + 3 round icons */
	.hvv-single-photo__share {
		margin: 0 0 32px !important;
		padding: 0 !important;
	}
	.hvv-single-photo__share-title {
		font-size: 13px !important;
		font-weight: 700 !important;
		text-transform: uppercase !important;
		color: #ADAAAA !important;
		letter-spacing: 0.52px !important;
		margin: 0 0 14px !important;
	}
	.hvv-single-photo__share-icons {
		display: flex !important;
		gap: 10px !important;
	}
	.hvv-single-photo__share-icon,
	.hvv-single-photo__share-icon svg {
		width: 24px !important;
		height: 24px !important;
	}
	.hvv-single-photo__share-icon { background: transparent !important; }
}
