.image-gallery {
    width: 100%;
}

/* Gallery Grid View */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-link:hover .gallery-image {
    transform: scale(1.05);
}

/* Gallery Slider View */
.gallery-slider {
    width: 100%;
}

.gallery-slider__main {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
    height: 0;
    padding-bottom: 56.25%;
    background: #f5f5f5;
}

.gallery-slider__main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
}

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

.gallery-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.gallery-slider__arrow:hover {
    background: rgba(255, 255, 255, 1);
}

.gallery-slider__arrow--prev {
    left: 1rem;
}

.gallery-slider__arrow--next {
    right: 1rem;
}

.gallery-slider__thumbnails {
    position: relative;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    margin: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.gallery-slider__thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-slider__thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.gallery-slider__thumbnails::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.gallery-slider__thumbnails::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.gallery-slider__thumbnails-container {
    display: flex;
    gap: 0.5rem;
    padding: 0 10px;
}

.gallery-slider__thumbnail {
    flex: 0 0 100px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color 0.3s ease;
}

.gallery-slider__thumbnail.active {
    border-color: #000;
}

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

/* Remove the arrow button styles */
.gallery-slider__thumbnails-arrow {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .gallery-slider__arrow {
        width: 32px;
        height: 32px;
    }

    .gallery-slider__thumbnail {
        flex: 0 0 80px;
        height: 48px;
    }
} 