﻿.gallery-container {
    max-width: 1100px;
}

.gallery-title {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 30px;
    color: #333;
}

.gallery-item {
    margin-bottom: 10px;
    cursor: pointer;
    overflow: hidden;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: opacity 0.25s ease;
    }

    .gallery-item:hover img {
        opacity: 0.8;
    }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

    .lightbox.active {
        display: flex;
    }

.lightbox-image {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: none;
    background: transparent;
    color: white;
    font-size: 35px;
    cursor: pointer;
    padding: 10px 20px;
    opacity: 0.75;
}

    .lightbox-close:hover,
    .lightbox-prev:hover,
    .lightbox-next:hover {
        opacity: 1;
    }

.lightbox-close {
    top: 15px;
    right: 20px;
    font-size: 40px;
}

.lightbox-prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    color: #aaa;
    font-size: 13px;
    letter-spacing: 1px;
}

@media (max-width: 767px) {
    .gallery-item {
        height: 160px;
    }

        .gallery-item img {
            height: 160px;
        }

    .lightbox-image {
        max-width: 95%;
        max-height: 75vh;
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }
}
