/* Triple Slider Gallery Styles */
.gallery-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    padding: 2rem 0;
}

.slider-row {
    width: 100%;
    margin: 1rem 0;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 20px;
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform 0.1s linear;
}

.slide {
    flex: 0 0 300px;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    will-change: transform;
    cursor: pointer;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateZ(0);
    will-change: transform, opacity;
}

.slide img[src] {
    opacity: 1;
}

.slide:hover {
    transform: translateZ(0) scale(1.05);
    transition: transform 0.3s ease-in-out;
    z-index: 1;
}

.slide-clone {
    opacity: 1;
}

/* Ensure no gaps between slides */
.slider-track {
    gap: 20px;
    padding: 0;
    margin: 0;
}

.slide, .slide-clone {
    margin: 0;
    padding: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide, .slide-clone {
        flex: 0 0 250px;
        height: 166px;
    }
}

@media (max-width: 480px) {
    .slide, .slide-clone {
        flex: 0 0 200px;
        height: 133px;
    }
}

/* Lightbox styles */
.lightbox {
    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: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav::before,
.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    background: white;
}

.lightbox-prev::before {
    width: 12px;
    height: 12px;
    border-left: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
    margin-left: 5px;
}

.lightbox-next::before {
    width: 12px;
    height: 12px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(-45deg);
    margin-right: 5px;
}

.lightbox-close::before,
.lightbox-close::after {
    width: 20px;
    height: 3px;
    background: white;
}

.lightbox-close::before {
    transform: rotate(45deg);
}

.lightbox-close::after {
    transform: rotate(-45deg);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Make slides clickable */
.slide:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
} 