/* Gallery Page Styles */
.gallery-page {
    padding: 60px 0;
    background-color: #f0f8ff;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 30px;
}

/* Main display area with fixed layout */
.main-display {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.main-image-container {
    flex: 0 0 600px; /* Fixed width for image */
    text-align: center;
}

.main-image {
    width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.image-description {
    flex: 1;
    background: rgba(248,249,250,0.95);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 400px; /* Match image height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-description p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    text-align: center;
}

/* Gallery Controls */
.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.nav-btn {
    background: #3cf;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background: #2bb;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Thumbnails */
.thumbnails-container {
    width: 400px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    border: 2px solid #f0f0f0;
}

.thumbnails-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    gap: 5px;
    padding: 5px;
    height: 70px;
}

.thumbnail {
    min-width: 70px;
    width: 70px;
    height: 60px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    object-fit: cover;
    flex-shrink: 0;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: #3cf;
}

.thumbnail.active {
    border-color: #3cf;
    box-shadow: 0 0 10px rgba(60, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-display {
        flex-direction: column;
    }
    
    .main-image-container {
        flex: none;
        width: 100%;
    }
    
    .main-image {
        width: 100%;
        max-width: 600px;
    }
    
    .image-description {
        height: auto;
        min-height: 150px;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        margin: 0 15px;
        padding: 20px;
    }
    
    .gallery-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .thumbnails-container {
        width: 300px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .thumbnails-container {
        width: 250px;
    }
    
    .thumbnail {
        min-width: 50px;
        width: 50px;
        height: 45px;
    }
}

.main-image-container video {
    width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.thumbnail-container {
    position: relative;
    min-width: 70px;
    width: 70px;
    height: 60px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
    overflow: hidden;
}

.thumbnail-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    pointer-events: none;
}

.thumbnail-container:hover {
    transform: scale(1.05);
    border-color: #3cf;
}

.thumbnail-container.active {
    border-color: #3cf;
    box-shadow: 0 0 10px rgba(60, 255, 255, 0.5);
}
