body {
    background: #f5f5f5;
}

.gallery-section {
    background: white;
    border-radius: 30px;
    padding: 100px 40px;
    max-width: 1400px;
    margin: 80px auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.08);
}

.gallery-section {
    padding: 120px 20px;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* HEADER */

.gallery-header {
    margin-bottom: 80px;
}

/* MAIN TITLE */

.gallery-header h2 {
	font-family: "Playfair Display", serif;
    font-size: 2.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
}

/* SUBTITLE */

.gallery-header p {
    font-size: 1.15rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #999;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

/* LINES LEFT & RIGHT */

.gallery-header p::before,
.gallery-header p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: #ddd;
}

.gallery-header p::before {
    right: 100%;
}

.gallery-header p::after {
    left: 100%;
}

.gallery-grid {
    column-count: 4;
    column-gap: 18px;
}

.gallery-item {
    position: relative;
}

/* OVERLAY */

.gallery-item::before {
    content: attr(data-title);
    position: absolute;
    left: 20px;
    bottom: 40px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 2;
}

/* DESCRIPTION */

.gallery-item::after {
    content: attr(data-description);
    position: absolute;
    left: 20px;
    bottom: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 2;
}

/* DARK OVERLAY */

.gallery-item span {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: 0.3s;
}

/* HOVER STATE */

.gallery-item:hover::before,
.gallery-item:hover::after,
.gallery-item:hover span {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 700px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* ITEM */

.gallery-item {
    break-inside: avoid;
    margin-bottom: 18px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* IMAGE */

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 18px;
    transition: transform 0.5s ease, filter 0.4s ease;
}

/* HOVER */

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* FADE IN */

.gallery-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* LIGHTBOX */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.gallery-lightbox.show {
    opacity: 1;
    pointer-events: all;
}

/* IMAGE */

.lightbox-image {
    max-width: 90%;
    max-height: 85%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: zoomIn 0.35s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* CLOSE */

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 42px;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* NAV BUTTONS */

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: white;
    cursor: pointer;
    padding: 14px 18px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.gallery-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.gallery-item.show {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item {
    transition-delay: calc(var(--i) * 0.05s);
}

/* MOBILE */

@media (max-width: 768px) {

    .gallery-header h2 {
        font-size: 2.2rem;
    }

    .gallery-grid {
        gap: 12px;
    }

}