﻿.photo-gallery {
    margin: 0 -5px;
}

.gallery-item {
    padding: 3px !important;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    cursor: pointer;
}

    .gallery-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
}

/* Fullscreen gallery */
#fullGalleryModal .modal-dialog {
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
}

#fullGalleryModal .modal-content {
    min-height: 100%;
    border: 0;
    border-radius: 0;
}

#fullGalleryModal .modal-body {
    overflow-y: auto;
    padding: 1rem 10rem;
}

#fullGalleryModal .gallery-image-wrapper {
    height: 280px;
}

/* Enlarged image */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 28px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

.prev-image {
    left: 10px;
}

.next-image {
    right: 10px;
}

#modalImage {
    max-height: 75vh;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 576px) {
    #fullGalleryModal .modal-body {
        padding: 1rem;
    }

    .gallery-image-wrapper {
        height: 85px;
    }

    #fullGalleryModal .gallery-image-wrapper {
        height: 110px;
    }
}
