.image-gallery-container {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

/* Main Image Display */
.main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.main-image-description {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.main-image-description h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tanspot-black);
}

.main-image-description p {
    color: var(--tanspot-gray);
    font-size: 1rem;
}

/* Horizontal Thumbnail List */
.thumbnail-list-wrapper-horizontal {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Cho phép cuộn ngang */
    padding: 1.5rem 0.5rem;
    margin-top: 1rem;
    -webkit-overflow-scrolling: touch; /* Cuộn mượt hơn trên mobile */
}

/* Custom scrollbar */
.thumbnail-list-wrapper-horizontal::-webkit-scrollbar {
    height: 8px;
}
.thumbnail-list-wrapper-horizontal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.thumbnail-list-wrapper-horizontal::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.thumbnail-list-wrapper-horizontal::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.thumbnail-item-horizontal {
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid transparent;
    flex-shrink: 0; /* Ngăn các item bị co lại */
}

.thumbnail-item-horizontal:hover {
    transform: translateY(-4px);
}

.thumbnail-item-horizontal.active .thumbnail-image-horizontal {
    border-color: var(--tanspot-base);
}

.thumbnail-image-horizontal {
    width: 120px;
    height: 80px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}