.gallery-page {
    width: 96%;
    margin: 15px 2%;
    color: #000;
}

.gallery-heading {
    margin: 25px 0 30px;
    text-align: left;
}

.gallery-heading h1 {
    font-size: 40px;
    line-height: 1.2;
    margin: 0 0 8px;
    color: #000;
    text-shadow: #999 2px 2px 2px;
}

.gallery-heading p {
    font-size: 16px;
    color: #555;
    margin: 0;
}

.gallery-sections {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.gallery-section {
    width: 100%;
}

.gallery-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    border: 1px solid #efefef;
    min-height: 70px;
    padding: 0 15px;
    box-sizing: border-box;
}

.gallery-section-heading h2 {
    margin: 0;
    padding: 0;
    font-size: 25px;
    line-height: 1.2;
    color: #000;
    text-shadow: #999 1px 1px 1px;
    background: none;
    cursor: default;
}

.gallery-section-heading p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #777;
}

.gallery-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 36px;
    padding: 0 18px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.25s ease;
}

.gallery-more-link:hover {
    background: #4eb4ff;
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.gallery-card {
    position: relative;
    display: block;
    border: 1px solid #bfbfbf;
    padding: 6px;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 4 / 3;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-card-overlay {
    position: absolute;
    inset: 6px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-overlay span {
    border: 1px solid #fff;
    width: 80%;
    padding: 14px 10px;
    font-size: 15px;
    line-height: 1.35;
}

.gallery-card-more {
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.gallery-card-more:hover {
    background: #4eb4ff;
    color: #fff;
}

.gallery-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 25px 0 22px;
}

.gallery-filter-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    color: #000;
    background: #fff;
    padding: 8px 14px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gallery-filter-nav-item:hover,
.gallery-filter-nav-item.is-active {
    background: #000;
    border-color: #000;
    color: #fff;
}

.empty-state {
    padding: 30px;
    border: 1px solid #efefef;
    background: #fafafa;
    color: #555;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gallery-page {
        width: 92%;
        margin: 15px 4%;
    }

    .gallery-section-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.neteren-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.neteren-lightbox.is-active {
    display: flex;
}

.neteren-lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    background: #fff;
}

.neteren-lightbox-close,
.neteren-lightbox-prev,
.neteren-lightbox-next {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    z-index: 2;
}

.neteren-lightbox-close {
    top: 18px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 36px;
    line-height: 40px;
}

.neteren-lightbox-prev,
.neteren-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 70px;
    font-size: 58px;
    line-height: 60px;
}

.neteren-lightbox-prev {
    left: 24px;
}

.neteren-lightbox-next {
    right: 24px;
}

.neteren-lightbox-close:hover,
.neteren-lightbox-prev:hover,
.neteren-lightbox-next:hover {
    background: #4eb4ff;
}

body.lightbox-open {
    overflow: hidden;
}