/* --- Gallery Slider (Enhanced) --- */
.gallery-wrapper {
    width: 100%;
    max-width: 100vw;
    margin-top: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.gallery-main-view {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
}

.gallery-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Controls */
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary-gold);
    color: var(--white);
    border-color: var(--primary-gold);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

/* Bottom Bar */
.gallery-bottom-bar {
    background: var(--primary-deep-blue);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.gallery-thumbs {
    flex: 1;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

/* Chrome */

.thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
    border: 2px solid transparent;
}

.thumb:hover {
    opacity: 0.8;
}

.thumb.active {
    opacity: 1;
    border-color: var(--primary-gold);
    transform: scale(1.05);
}

/* Header Logo Fix */
.header-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

@media(max-width: 768px) {
    .gallery-main-view {
        height: 300px;
    }

    /* Ensure images cover the area without stretching */
    .gallery-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
    }

    .gallery-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .gallery-info {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
        margin-bottom: 5px;
    }

    .gallery-thumbs {
        width: 100%;
    }
}