/* ==========================================================================
   FITOORNAMA — TASVEERKHANA / EDITORIAL PHOTO GALLERY
   ========================================================================== */

.editorial-gallery,
.tasveerkhana {
	position: relative;
	color: var(--color-background);
	background: var(--color-green-dark);
}

.editorial-gallery {
	padding-block: var(--section-space);
}

.gallery-frame {
	position: relative;
	width: min(100%, 1180px);
	margin: 0 auto clamp(76px, 10vw, 150px);
}

.gallery-frame:last-child {
	margin-bottom: 0;
}

.gallery-frame:nth-child(3n + 2) {
	width: min(78%, 900px);
	margin-right: 0;
}

.gallery-frame:nth-child(3n + 3) {
	width: min(66%, 760px);
	margin-left: 0;
}

.gallery-frame a {
	display: block;
	overflow: hidden;
}

.gallery-frame img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 82vh;
	object-fit: cover;
	transition:
		transform 1.4s var(--ease-cinematic),
		filter 0.85s ease;
}

.gallery-frame:hover img {
	filter: brightness(1.06) contrast(1.015);
	transform: scale(1.015);
}

.gallery-frame figcaption {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 18px;
	color: rgba(247, 244, 237, 0.66);
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	line-height: 1.7;
	text-align: left;
}

.gallery-frame figcaption::before {
	flex: 0 0 36px;
	width: 36px;
	height: 1px;
	margin-top: 0.7em;
	content: "";
	background: var(--color-gold);
}

.tasveerkhana .editorial-link,
.editorial-gallery .editorial-link {
	color: var(--color-background);
}

.tasveerkhana .editorial-link:hover,
.editorial-gallery .editorial-link:hover {
	color: var(--color-gold-soft);
}

@media (max-width: 900px) {

	.gallery-frame,
	.gallery-frame:nth-child(3n + 2),
	.gallery-frame:nth-child(3n + 3) {
		width: 100%;
		margin-right: auto;
		margin-left: auto;
	}

	.gallery-frame {
		margin-bottom: clamp(62px, 12vw, 96px);
	}
}

@media (max-width: 600px) {

	.gallery-frame figcaption {
		display: block;
	}

	.gallery-frame figcaption::before {
		display: block;
		margin: 0 0 14px;
	}

	.gallery-frame img {
		max-height: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.gallery-frame img {
		transition: none;
	}
}