/* Gallery Variables */
:root {
    --gallery-img-height: 200px;
}

/* Gallery Images - Base Styles */
.gallery-img-base,
.gallery-img-home,
.gallery-img {
    width: 100%;
    object-fit: cover;
    height: var(--gallery-img-height);
}

/* Gallery page specific - interactive styles */
.gallery-img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-container {
    margin-top: 5vh;
}

.gallery-img:hover {
    transform: scale(1.05);
}

.gallery-item {
    overflow: hidden;
    border-radius: 0.375rem;
}

/* Gallery Navigation Pills */
.nav-pills .nav-link {
    border-radius: 50px;
    margin: 0 5px;
}

/* Gallery Modal Styles */
#galleryModal .btn-close {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#galleryModal .btn-close:hover {
    opacity: 1;
}

/* Navigation button styles */
#galleryModal #prevBtn,
#galleryModal #nextBtn {
    opacity: 0.7;
    transition: opacity 0.2s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

#galleryModal #prevBtn:hover,
#galleryModal #nextBtn:hover {
    opacity: 1;
}

#galleryModal #prevBtn i,
#galleryModal #nextBtn i {
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.3));
}

/* Modal Image Sizing */
#galleryModalImg {
    max-height: 85vh;
    max-width: 90vw;
    width: auto;
    height: auto;
}

/* Remove modal backdrop blur for cleaner look */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .gallery-img {
        height: 150px;
    }
    
    #galleryModalImg {
        max-height: 60vh;
    }
}
