/*
 * Gallery and lightbox styles for VC Massage Therapy website
 */

/* Gallery Section */
.gallery-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: none;
}

.gallery-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.gallery-slide.prev {
    opacity: 0;
    transform: translateX(-100%);
}

.gallery-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.carousel-control.gallery-prev,
.carousel-control.gallery-next {
    background-color: #d4af37;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

.carousel-control.gallery-prev:hover,
.carousel-control.gallery-next:hover {
    background-color: #bd9c30;
    transform: translateY(-2px);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    margin: 0 15px;
}

.carousel-dot.gallery-dot {
    width: 12px;
    height: 12px;
    display: inline-block;
    margin: 0 4px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.gallery-dot.active {
    background: #d4af37;
}

/* Enhanced video play styles */
.video-item {
    position: relative;
    cursor: pointer;
}

.video-item .gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.video-item .video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(212, 175, 55, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: all;
    cursor: pointer;
}

.video-item:hover .video-play-button {
    background-color: rgba(212, 175, 55, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-item.playing .video-play-button {
    opacity: 0;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 80%;
    max-width: 900px;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.lightbox-controls {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none; /* This allows clicks to pass through to the image */
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute;
    pointer-events: auto; /* This ensures the controls are clickable */
    z-index: 2010;
}

.lightbox-close {
    top: -40px;
    right: 0;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    color: #d4af37;
    text-decoration: none;
}

.gallery-item a {
    cursor: pointer;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Media Queries */
@media (max-width: 992px) {
    .gallery-carousel {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .gallery-carousel {
        height: 300px;
    }
    
    .gallery-carousel-controls {
        margin-top: 15px;
    }
    
    .carousel-control.gallery-prev,
    .carousel-control.gallery-next {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .video-play-button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .lightbox-content {
        width: 95%;
    }
    
    .lightbox-prev {
        left: -30px;
        font-size: 40px;
    }
    
    .lightbox-next {
        right: -30px;
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .gallery-carousel {
        height: 250px;
    }
}
