/* Gallery Section */        
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 128, 0.7); /* Navy blue with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}
.filter-btn {
    margin: 0 5px;
}
.modal-body {
    position: relative;
    padding: 0;
    overflow: hidden;
}
.modal-body img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}
.nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.nav-arrow.prev {
    left: 15px;
}
.nav-arrow.next {
    right: 15px;
}
.modal-header {
    border-bottom: none;
}
.modal-content {
    border-radius: 10px;
    overflow: hidden;
}
.swipe-indicator {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-body.swiping .swipe-indicator {
    opacity: 1;
}

/* Full-screen modal styles for desktop */
@media (min-width: 768px) {
    .modal-fullscreen .modal-dialog {
        max-width: 100%;
        margin: 0;
        height: 100vh;
    }
    .modal-fullscreen .modal-content {
        height: 100%;
        border: none;
        border-radius: 0;
        background-color: #000;
    }
    .modal-fullscreen .modal-header {
        background-color: rgba(0, 0, 0, 0.7);
        border: none;
        padding: 15px 20px;
    }
    .modal-fullscreen .modal-title {
        color: white;
    }
    .modal-fullscreen .btn-close {
        filter: invert(1);
    }
    .modal-fullscreen .modal-body {
        height: calc(100% - 60px - 40px); /* Subtract header height and bottom margin */
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #000;
        padding: 0 20px 40px; /* Add bottom padding */
    }
    .modal-fullscreen .modal-body img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    .modal-fullscreen .nav-arrow {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    .modal-fullscreen .nav-arrow.prev {
        left: 40px;
    }
    .modal-fullscreen .nav-arrow.next {
        right: 40px;
    }
}

@media (max-width: 767px) {
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .nav-arrow.prev {
        left: 10px;
    }
    .nav-arrow.next {
        right: 10px;
    }
}