.gallery-section {
    padding: 50px 100px;
}

.gallery-section .gallery-grid-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.gallery-section .gallery-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border-radius: 0;
    overflow: visible;
    width: 100%;
    height: 100%;
}

.gallery-section .gallery-card-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
    height: 420px;
}

.gallery-section .gallery-card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-section .gallery-card:hover .gallery-card-image {
    transform: scale(1.05);
}

.gallery-section .gallery-card-title {
    margin: 14px 0 0;
    text-align: center;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 400;
    color: #796210;
}

@media (min-width: 1600px) {
    .gallery-section .gallery-card-image-wrap {
        height: 520px;
    }
}

@media (max-width: 900px) {
    .gallery-section {
        padding: 50px 50px;
    }

    .gallery-section .gallery-card-image-wrap {
        height: 320px;
    }
}

@media (max-width: 500px) {
    .gallery-section .gallery-grid-container {
        grid-template-columns: 1fr;
    }

    .gallery-section .gallery-card-image-wrap {
        height: 260px;
    }

    .gallery-section .gallery-card-title {
        font-size: 18px;
    }
}

.custom-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2147483647;
    padding: 40px 90px;
    box-sizing: border-box;
}

.custom-lightbox.active {
    display: flex;
}

.custom-lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

#lightboxImage {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.custom-lightbox-caption {
    color: #fff;
    margin-top: 12px;
    text-align: center;
}

.custom-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    z-index: 2147483647;
}

.custom-lightbox-prev {
    left: 24px;
}

.custom-lightbox-next {
    right: 24px;
}

.custom-lightbox-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 38px;
    cursor: pointer;
    z-index: 2147483647;
}

@media (max-width: 600px) {
    .custom-lightbox {
        padding: 20px 20px 90px;
    }

    #lightboxImage {
        max-height: calc(100vh - 150px);
    }

    .custom-lightbox-nav {
        top: auto;
        bottom: 20px;
        transform: none;
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .custom-lightbox-prev {
        left: calc(50% - 54px);
    }

    .custom-lightbox-next {
        right: calc(50% - 54px);
    }
}
