/* Swipeable Gallery Styles */
.swipe-gallery {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
    height: 400px;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #000;
}

.swipe-gallery-container {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-out;
}

.swipe-gallery-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swipe-gallery-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.swipe-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    border: none;
    transition: all 0.3s ease;
}

.swipe-nav-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.swipe-prev {
    left: 10px;
}

.swipe-next {
    right: 10px;
}

.swipe-image-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
}

.swipe-image-caption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    max-width: 80%;
    font-size: 1rem;
    z-index: 10;
}

/* Thumbnail Gallery Styles */
.thumbnail-gallery {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 15px;
    margin-top: 15px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 8px;
    scrollbar-width: thin;
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-height: 130px;
    position: relative;
    z-index: 10;
}

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

.thumbnail-gallery::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 3px;
}

.gallery-thumbnail-container {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumbnail-container:hover {
    transform: scale(1.05);
}

.gallery-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-thumbnail:hover {
    opacity: 0.9;
}

.gallery-thumbnail.active {
    opacity: 1;
    border: 3px solid var(--primary-color, #0A1A3A);
    box-shadow: 0 0 10px var(--primary-color, #0A1A3A);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .swipe-gallery {
        height: 300px;
    }
    
    .swipe-nav-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-thumbnail-container,
    .gallery-thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .thumbnail-gallery {
        max-height: 110px;
    }
}

@media (max-width: 480px) {
    .swipe-gallery {
        height: 250px;
    }
    
    .swipe-nav-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .gallery-thumbnail-container,
    .gallery-thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .thumbnail-gallery {
        max-height: 100px;
    }
}
