.age-wrapper {
	width: 100%;
}

.age-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	margin-bottom: 24px;
}

.age-eyebrow {
	color: #ffffff;
	font-family: "Barlow Condensed", Sans-serif;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
}

.age-title {
	font-family: "CAT Eckmann", Sans-serif;
	font-size: 42px;
	font-weight: 700;
	margin: 0;
	line-height: 1.1;
	text-transform: uppercase;
}

.age-title-white {
	color: #ffffff;
}

.age-title-gold {
	color: #d4a017;
	margin-left: 10px;
}

.age-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.age-tab {
	font-family: "Barlow Condensed", Sans-serif;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #ffffff;
	font-weight:700 !important;
	font-size: 12px;
	letter-spacing: 0.5px;
	padding: 8px 16px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.age-tab:hover {
	border-color: #d4a017;
}

.age-tab.is-active,.age-tab:hover {
	background-color: #d4a017 !important;
	border-color: #d4a017 !important;
	color: white !important;
	font-weight: 700 !important;
}

.age-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-auto-rows: 200px;
	gap: 10px !important;
}

.age-card {
	position: relative;
	display: block;
	overflow: hidden;
	text-decoration: none;
	grid-column: span 1;
	grid-row: span 1;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.age-card.age-card-featured {
	grid-column: 1 / 2;
	grid-row: 1 / 3;
}

.age-card.age-hidden {
	display: none;
}

.age-card-img {
	display: block;
	border: 0;
	max-width: none;
	transition: transform 0.4s ease;
}

/* Fixed grid: image card ko fill kare (crop). */
.age-layout-fixed .age-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Natural size: image apne asli ratio me, poori. */
.age-layout-natural .age-grid {
	display: block;
	column-count: 3;
	column-gap: var(--age-gap, 10px) !important;
	gap: 0 !important;
}

.age-layout-natural .age-card,
.age-layout-natural .age-card.age-card-featured {
	display: block;
	grid-column: auto;
	grid-row: auto;
	break-inside: avoid;
	margin-bottom: var(--age-gap, 10px);
}

.age-layout-natural .age-card-img {
	position: static;
	width: 100%;
	height: auto;
	object-fit: initial;
}

.age-layout-natural .age-card.age-hidden {
	display: none;
}

.age-card-count {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	min-width: 26px;
	height: 26px;
	padding: 0 8px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #d4a017;
	color: #ffffff;
	font-family: "Barlow Condensed", Sans-serif;
	font-size: 14px;
	font-weight: 700;
	border-radius: 13px;
}

.age-card:hover .age-card-img {
	transform: scale(1.06);
}

.age-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, #000000 0%, transparent 60%);
	pointer-events: none;
}

.age-card-text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.age-card-title {
	color: #ffffff;
	font-family: 'Cinzel Decorative';
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.age-card-credit {
	    font-family: "Barlow Condensed", Sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #E8A800;
	font-size: 15px;
	letter-spacing: 0.3px;
}

.age-card-cat {
	    font-family: "Barlow", Sans-serif;
	color: rgba(255, 255, 255, 0.7);
	font-size: 12px;
}

@media (max-width: 900px) {
	.age-grid {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 220px;
	}
	.age-card.age-card-featured {
		grid-column: 1 / 3;
		grid-row: 1 / 2;
	}
}

@media (max-width: 600px) {
	.age-title {
		font-size: 28px;
	}
	.age-grid {
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}
	.age-card.age-card-featured {
		grid-column: 1 / 2;
		grid-row: auto;
	}
	.age-card {
		height: 220px;
	}
}

/* ---------- Category tab: barabar size ki grid (featured layout sirf ALL me) ---------- */
.age-wrapper.age-is-filtered .age-grid {
	grid-template-columns: repeat(3, 1fr);
}

.age-wrapper.age-is-filtered .age-card.age-card-featured {
	grid-column: auto;
	grid-row: auto;
}

@media (max-width: 900px) {
	.age-wrapper.age-is-filtered .age-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.age-wrapper.age-is-filtered .age-card.age-card-featured {
		grid-column: auto;
		grid-row: auto;
	}
}

@media (max-width: 600px) {
	.age-wrapper.age-is-filtered .age-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	.age-layout-natural .age-grid { column-count: 2; }
}
@media (max-width: 600px) {
	.age-layout-natural .age-grid { column-count: 1; }
	.age-layout-natural .age-card { height: auto; }
}

.age-lb-counter {
	color: rgba(255, 255, 255, 0.7);
	font-family: "Barlow Condensed", Sans-serif;
	font-size: 14px;
	letter-spacing: 1px;
	margin-top: 4px;
}

/* ---------- Lightbox ---------- */
.age-card-lightbox {
	cursor: zoom-in;
}

html.age-lb-lock {
	overflow: hidden;
}

.age-lb {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
	padding: 40px 70px;
	box-sizing: border-box;
}

.age-lb.is-open {
	display: flex;
}

.age-lb-figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	max-height: 100%;
}

/* Image apne original size me, lekin screen se bahar nahi jayegi - puri image dikhegi (crop nahi). */
.age-lb-img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 120px);
	object-fit: contain;
}

.age-lb-cap {
	color: #ffffff;
	font-family: "Barlow Condensed", Sans-serif;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-top: 14px;
	text-align: center;
}

.age-lb-credit {
	color: #d4a017;
	font-family: "Barlow", Sans-serif;
	font-size: 14px;
	font-style: italic;
	margin-top: 4px;
	text-align: center;
}

.age-lb-close,
.age-lb-nav {
	position: absolute;
	background: transparent !important;
	border: 0 !important;
	color: #ffffff !important;
	cursor: pointer;
	line-height: 1;
	padding: 10px 16px;
	transition: color 0.2s ease;
}

.age-lb-close:hover,
.age-lb-nav:hover {
	color: #d4a017 !important;
}

.age-lb-close {
	top: 12px;
	right: 18px;
	font-size: 44px;
}

.age-lb-nav {
	top: 50%;
	transform: translateY(-50%);
	font-size: 64px;
}

.age-lb-prev { left: 8px; }
.age-lb-next { right: 8px; }
.age-lb-single .age-lb-nav { display: none; }

@media (max-width: 600px) {
	.age-lb { padding: 50px 12px; }
	.age-lb-nav { font-size: 44px; padding: 6px 8px; }
	.age-lb-img { max-height: calc(100vh - 140px); }
}
