/* Slick Slider Customization for About Section */
.slider-about-slick {
    position: relative;
    width: 250px;
    /* Constrained width ~half size */
    max-width: 100%;
    margin: 0 auto 60px;
    /* Centered with bottom space for nav */
    margin-top: 2rem;
}

/* Aspect Ratio 9:16 for slides wrapper */
.slider-about-slick .slick-slide {
    outline: none;
}

/* Inner wrapper to handle aspect ratio */
.slider-about-slick .slide-inner {
    position: relative;
    padding-bottom: 177.78%;
    /* 16/9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
}

.slider-about-slick .slick-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Arrows: Moved below slider */
.slider-about-slick .slick-arrow {
    position: absolute;
    top: auto;
    bottom: -50px;
    z-index: 20;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    border: 1px solid #eee;
    /* Light border to see them against white bg */
}

.slider-about-slick .slick-arrow:hover {
    background-color: #f0f0f0;
}

.slider-about-slick .slick-arrow:before {
    color: #000;
    opacity: 1;
    font-size: 24px;
}

.slider-about-slick .slick-next {}

.slider-about-slick .slick-prev {
    /* Positioned at left edge of the slider container */
}

/* Dots: Under slider, centered between arrows */
.slider-about-slick .slick-dots {}

.slider-about-slick .slick-dots li button:before {
    font-size: 12px;
    color: #ccc;
    opacity: 1;
}

.slider-about-slick .slick-dots li.slick-active button:before {
    color: #B0052F;
    /* Matching site primary color */
}


/* Fix for mobile horizontal scrolling */
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: 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-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border: 2px solid #fff;
    border-radius: 4px;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    transition: transform 0.2s;
    z-index: 10001;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-close:before,
.lightbox-close:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: -40px;
        right: 0;
    }
}

/* Prevent scrolling when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

/* Gallery Slider Styles (Matching About Slider) */
.gallery-slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    border: 1px solid #eee;
}

.gallery-slider .slick-arrow:hover {
    background-color: #f0f0f0;
}

.gallery-slider .slick-arrow:before {
    color: #000;
    opacity: 1;
    font-size: 24px;
}

.gallery-slider .slick-prev {
    left: -10px;
}

.gallery-slider .slick-next {
    right: -10px;
}

.gallery-slider .slick-dots li button:before {
    font-size: 12px;
    color: #ccc;
    opacity: 1;
}

.gallery-slider .slick-dots li.slick-active button:before {
    color: #B0052F;
}