.gallery-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 32px 0px;
    width: calc(95% - 24px) !important;
    max-width: 1200px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--greyTrans);
    box-shadow:inset 12px 12px 36px #094d63, inset -12px -12px 36px #1a1a1a33;
    border-radius: 12px;
}
.gallery-item {
    width: 100%;
    height: 100%;
    border-radius: 12px !important;
    overflow: hidden !important;
}
.gallery-left-button, .gallery-right-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
    position: absolute;
    top: 0;
    z-index: 10;
    background-color: transparent !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gallery-left-button {
    left: 0;
}

.gallery-right-button {
    right: 0;
}

.gallery-head {
    max-width: 1400px;
    padding: 20px;
    text-align: left;
}



/* Gallery Grid Styles */
        
.gallery-track {
    display: flex;
    width: fit-content;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
    padding: 0 40px;
    position: absolute;
    left: 0;
}

.gallery-left-button, .gallery-right-button {
    cursor: pointer;
    flex-shrink: 0;
    z-index: 2;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    padding: 10px;
    background-color: rgba(10, 90, 117, 0.6);
}

.gallery-left-button:hover, .gallery-right-button:hover {
    opacity: 1;
    background-color: rgba(10, 90, 117, 0.9);
}

.gallery-item {
    flex: 0 0 calc((100% - 80px) / 3);
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    aspect-ratio: 16/9;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.gallery-modal-content {
    position: relative;
    width:90%;
    height: auto;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-modal-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.gallery-modal-image {
    width: 80%;
    height: auto;
    object-fit: contain;
}

.gallery-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-modal-close:hover {
    transform: scale(1.1);
}

.gallery-modal-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.gallery-modal-prev, .gallery-modal-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 16px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
    pointer-events: auto;
    margin: 0 20px;
}

.gallery-modal-prev:hover, .gallery-modal-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .gallery-grid {
        height: 200px;
    }
    .gallery-item {
        flex: 0 0 calc((100% - 80px) / 2);
        min-width: 260px;
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        height: 250px;
    }
    .gallery-item {
        flex: 0 0 calc(100% - 80px);
        min-width: 280px;
        max-width: 420px;
    }
    
    .gallery-modal-image {
        max-width: 100%;
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        min-width: 260px;
    }
}