/* ===== RENDERING GALLERY SECTION ===== */
.rendering-gallery {
	padding: 60px 0;
	background-color: #f9f9f9;
}

.gallery-intro {
	margin-bottom: 60px;
}

.gallery-subtitle {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #0070f3;
	margin-bottom: 15px;
}

.gallery-title {
	font-size: 42px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 20px;
}

.gallery-copy {
	font-size: 18px;
	color: #666;
	max-width: 600px;
	margin: 0 auto;
}

/* ===== RENDERING SECTIONS ===== */
.rendering-section {
	margin-bottom: 80px;
}

.section-title {
	font-size: 32px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-bottom: 3px solid #0070f3;
	display: inline-block;
}

/* ===== BHK BLOCKS (RESIDENTIAL) ===== */
.bhk-block {
	margin-bottom: 50px;
}

.subsection-header {
	margin-bottom: 30px;
}

.subsection-header h3 {
	font-size: 24px;
	font-weight: 600;
	color: #333;
	margin: 0;
	padding: 12px 0;
	border-left: 4px solid #0070f3;
	padding-left: 15px;
}

/* ===== STYLE GROUP & COLUMNS ===== */
.style-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}

.style-column {
	display: flex;
	flex-direction: column;
}

.style-label {
	font-size: 16px;
	font-weight: 600;
	color: #0070f3;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e0e0e0;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 25px;
	row-gap: 0;
	width: 100%;
}

/* ===== GALLERY CARD ===== */
.gallery-card {
	display: block;
	overflow: hidden;
	text-decoration: none;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	aspect-ratio: 1;
	cursor: pointer;
	margin-top: 2%;
}

.gallery-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	transform: translateY(-4px);
}

.gallery-card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 8px;
}

.gallery-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
	display: block;
}

.gallery-card:hover img {
	transform: scale(1.08);
}

.gallery-card-caption {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: 0;
	transition: opacity 0.3s ease;
	border-radius: 8px;
}

.gallery-card:hover .gallery-card-caption {
	opacity: 1;
}

/* ===== COMMERCIAL OFFICES & LANDSCAPING ===== */
.rendering-section > .gallery-grid {
	grid-template-columns: repeat(3, 1fr);
	column-gap: 30px;
	padding-top: 60px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
	.style-group {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.section-title {
		font-size: 28px;
	}

	.gallery-title {
		font-size: 36px;
	}

	.rendering-section .gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		column-gap: 20px;
		row-gap: 0;
	}

	.bhk-block {
		margin-bottom: 40px;
	}
}

/* Mobile (below 768px) */
@media (max-width: 768px) {
	.rendering-gallery {
		padding: 40px 0;
	}

	.gallery-intro {
		margin-bottom: 40px;
	}

	.gallery-title {
		font-size: 28px;
		margin-bottom: 15px;
	}

	.gallery-copy {
		font-size: 16px;
	}

	.rendering-section {
		margin-bottom: 50px;
	}

	.section-title {
		font-size: 22px;
		margin-bottom: 30px;
	}

	.subsection-header h3 {
		font-size: 20px;
	}

	.style-group {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		column-gap: 12px;
		row-gap: 0;
	}

	.rendering-section .gallery-grid {
		grid-template-columns: repeat(1, 1fr);
		row-gap: 0;
	}

	.bhk-block {
		margin-bottom: 30px;
	}

	.style-label {
		font-size: 14px;
		margin-bottom: 15px;
	}

	.subsection-header {
		margin-bottom: 20px;
	}
}

/* Extra small devices (below 480px) */
@media (max-width: 480px) {
	.rendering-gallery {
		padding: 30px 0;
	}

	.gallery-title {
		font-size: 24px;
	}

	.section-title {
		font-size: 20px;
		margin-bottom: 25px;
	}

	.subsection-header h3 {
		font-size: 18px;
	}

	.gallery-grid,
	.rendering-section .gallery-grid {
		grid-template-columns: repeat(1, 1fr);
		row-gap: 0;
	}

	.style-group {
		gap: 15px;
	}

	.style-label {
		font-size: 13px;
		margin-bottom: 12px;
	}
}

/* ===== LIGHTBOX MODAL ===== */
.gallery-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
	opacity: 1;
	visibility: visible;
}

.gallery-lightbox-content {
	position: relative;
	width: 90vw;
	height: 90vh;
	max-width: 1200px;
	background-color: #fff;
	border-radius: 8px;
	overflow: visible;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 60px rgba(0, 0, 0, 0.3);
}

.gallery-lightbox-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	width: auto;
	height: auto;
	border-radius: 8px;
}

.gallery-lightbox-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 45px;
	height: 45px;
	background-color: rgba(0, 0, 0, 0.6);
	border: 2px solid rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 100;
	padding: 0;
	line-height: 1;
}

.gallery-lightbox-close:hover {
	background-color: rgba(0, 0, 0, 0.9);
	border-color: #fff;
	transform: scale(1.1);
}

.gallery-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(255, 255, 255, 0.2);
	border: none;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	padding: 12px 16px;
	border-radius: 4px;
	transition: background-color 0.3s ease;
	z-index: 10;
}

.gallery-lightbox-nav:hover {
	background-color: rgba(255, 255, 255, 0.4);
}

.gallery-lightbox-prev {
	left: 15px;
}

.gallery-lightbox-next {
	right: 15px;
}

.gallery-lightbox-info {
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	background-color: rgba(0, 0, 0, 0.6);
	color: #fff;
	padding: 8px 16px;
	border-radius: 4px;
	font-size: 14px;
	z-index: 10;
}

/* Lightbox Responsive */
@media (max-width: 768px) {
	.gallery-lightbox-content {
		width: 95vw;
		height: 95vh;
		border-radius: 0;
	}

	.gallery-lightbox-close {
		top: 10px;
		right: 10px;
		width: 40px;
		height: 40px;
		font-size: 24px;
		border-width: 2px;
	}

	.gallery-lightbox-nav {
		padding: 10px 12px;
		font-size: 18px;
	}

	.gallery-lightbox-prev {
		left: 10px;
	}

	.gallery-lightbox-next {
		right: 10px;
	}

	.gallery-lightbox-info {
		bottom: 10px;
		padding: 6px 12px;
		font-size: 12px;
	}
}
