/* ── Gallery Page ─────────────────────────────────────────────────────────── */

.gallery-page {
    padding: 0 0 60px 0;
    background: #fff;
}

.gallery-masonry {
    column-count: 4;
    column-gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gallery lightbox reuses .lightbox-overlay from models.css — all shared */

@media (max-width: 1024px) { .gallery-masonry { column-count: 3; } }
@media (max-width: 768px)  { .gallery-masonry { column-count: 2; } }
@media (max-width: 480px)  { .gallery-masonry { column-count: 1; } }

/* Gallery hero — background image + heading/subheading overlay */
.gallery-hero {
	position: relative;
	width: 100%;
	height: 420px;
	overflow: hidden;
	background-color: #222;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.gallery-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.gallery-hero-content {
	position: relative;
	z-index: 2;
	color: #fff;
	padding: 0 20px;
}

.gallery-hero-content h1 {
	font-size: 48px;
	font-weight: 800;
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.gallery-hero-content p {
	font-size: 18px;
	opacity: 0.9;
	margin: 0;
}

@media (max-width: 768px) {
	.gallery-hero { height: 320px; }
	.gallery-hero-content h1 { font-size: 32px; }
	.gallery-hero-content p { font-size: 15px; }
}

@media (max-width: 480px) {
	.gallery-hero { height: 260px; }
	.gallery-hero-content h1 { font-size: 26px; letter-spacing: 1px; }
}

/* Gallery hero background image from DB */
.gallery-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
