/* Gallery Container */
.gallery-container {
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main Image Container */
.main-image-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.main-image-container:hover img {
    transform: scale(1.02);
}

/* Thumbnails */
.thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail.active {
    border-color: #0d6efd;
    transform: scale(1.05);
}

/* Loading and Error States */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.error-message {
    text-align: center;
    color: #dc3545;
    margin: 20px;
    padding: 15px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    display: none;
}

/* GLightbox Custom Styles */
.glightbox-container {
    background: rgba(0, 0, 0, 0.9);
}

.gslide-description {
    background: rgba(0, 0, 0, 0.7);
}

.gslide-title {
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-container {
        padding: 10px;
    }

    .thumbnail {
        width: 80px;
        height: 80px;
    }

    .main-image-container {
        margin: 0 -10px;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* GLightbox Navigation Controls */
.glightbox-container .gclose {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.glightbox-container .gclose:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.glightbox-container .gnext,
.glightbox-container .gprev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.glightbox-container .gnext:hover,
.glightbox-container .gprev:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.zoom-button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.zoom-button:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
