/* Custom Image Gallery CSS */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay.active {
    display: flex;
    opacity: 1;
}

.gallery-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    z-index: 1010;
}

.gallery-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.gallery-prev {
    left: -80px;
}

.gallery-next {
    right: -80px;
}

.gallery-close {
    position: absolute;
    top: -50px;
    right: -50px;
    background: none;
    color: white;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 1;
}

@media screen and (max-width: 768px) {
    .gallery-prev {
        left: 10px;
    }
    .gallery-next {
        right: 10px;
    }
    .gallery-close {
        top: 10px;
        right: 10px;
    }
    .gallery-btn {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        background: rgba(0, 0, 0, 0.5);
    }
}
