/* Gallery Section - Mobile First Vertical Images */
.ac-spp-gallery {
    position: relative;
    margin-bottom: 40px;
}

/* Header with Share/Save buttons */
.ac-spp-gallery-header {
   : flex !important;
    justify-content: flex-end !important;
    padding: 20px 0 15px !important;
    gap: 12px !important;
}

.ac-spp-gallery-actions {
    display: flex !important;
    gap: 12px !important;
}

.ac-spp-share-btn,
.ac-spp-save-btn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.ac-spp-share-btn:hover,
.ac-spp-save-btn:hover {
    border-color: #333 !important;
    background: #f9f9f9 !important;
}

/* Carousel Container */
.ac-spp-gallery-carousel {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    border-radius: 12px !important;
}

.ac-spp-carousel-track {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
}

.ac-spp-carousel-slide {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 3/4 !important;
    overflow: hidden !important;
    background: #f0f0f0 !important;
    cursor: pointer !important;
    border-radius: 8px !important;
}

.ac-spp-carousel-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease !important;
    display: block !important;
}

.ac-spp-carousel-slide:hover img {
    transform: scale(1.05) !important;
}

/* Carousel Navigation Arrows - 50% TRANSPARENT TEAL */
.ac-spp-carousel-prev,
.ac-spp-carousel-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(79, 247, 171, 0.5) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3) !important;
    backdrop-filter: blur(4px) !important;
}

.ac-spp-carousel-prev:hover,
.ac-spp-carousel-next:hover {
    background: rgba(61, 232, 153, 0.7) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.ac-spp-carousel-prev {
    left: 16px !important;
}

.ac-spp-carousel-next {
    right: 16px !important;
}

/* Arrow SVG - MUCH BIGGER AND BOLDER */
.ac-spp-carousel-prev svg,
.ac-spp-carousel-next svg {
    width: 38px !important;
    height: 38px !important;
}

.ac-spp-carousel-prev svg path,
.ac-spp-carousel-next svg path {
    stroke: #000000 !important;
    stroke-width: 5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    fill: none !important;
}

/* Show All Photos Button */
.ac-spp-show-all-btn {
    position: absolute !important;
    bottom: 20px !important;
    right: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15) !important;
    z-index: 10 !important;
}

.ac-spp-show-all-btn:hover {
    background: #f9f9f9 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25) !important;
    transform: translateY(-2px) !important;
}

/* Mobile Action Bar */
.ac-spp-mobile-actions {
    display: none !important;
    width: 100% !important;
}

/* Lightbox Styles */
.ac-spp-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
}

.ac-spp-lightbox-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.95) !important;
}

.ac-spp-lightbox-content {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
}

.ac-spp-lightbox-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
    color: white !important;
}

.ac-spp-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.ac-spp-lightbox-main {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin-bottom: 20px !important;
}

/* FIXED: Main lightbox image sizing - properly constrain to viewport */
.ac-spp-lightbox-image {
    max-width: 90vw !important;
    max-height: 80vh !important;
    object-fit: contain !important;
    object-position: center !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

/* Lightbox Navigation Buttons */
.ac-spp-lightbox-prev,
.ac-spp-lightbox-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 56px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: white !important;
}

.ac-spp-lightbox-prev:hover,
.ac-spp-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.ac-spp-lightbox-prev {
    left: 20px !important;
}

.ac-spp-lightbox-next {
    right: 20px !important;
}

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

/* Lightbox Thumbnails - Enhanced visibility */
.ac-spp-lightbox-thumbnails {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding: 15px 10px !important;
    justify-content: center !important;
    min-height: 100px !important;
    background: rgba(0,0,0,0.3) !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}

.ac-spp-lightbox-thumb {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    opacity: 0.6 !important;
    transition: all 0.2s ease !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    background: #222 !important;
}

.ac-spp-lightbox-thumb:hover {
    opacity: 1 !important;
    transform: scale(1.05) !important;
}

.ac-spp-lightbox-thumb.active {
    opacity: 1 !important;
    border-color: white !important;
    box-shadow: 0 0 10px rgba(255,255,255,0.5) !important;
}

/* Mobile Responsive - 1 SINGLE IMAGE */
@media (max-width: 768px) {
    .ac-spp-gallery {
        margin-bottom: 30px !important;
    }
    
    /* Hide desktop header buttons on mobile */
    .ac-spp-gallery-header {
        display: none !important;
    }
    
    /* Hide desktop "Show All" overlay button on mobile */
    .ac-spp-gallery-carousel .ac-spp-show-all-btn {
        display: none !important;
    }
    
    /* SHOW mobile action bar below carousel */
    .ac-spp-mobile-actions {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 0 0 0 !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
    }
    
    .ac-spp-mobile-actions .ac-spp-gallery-actions {
        display: flex !important;
        gap: 8px !important;
        flex: 0 0 auto !important;
    }
    
    /* Mobile button styling */
    .ac-spp-mobile-actions .ac-spp-share-btn,
    .ac-spp-mobile-actions .ac-spp-save-btn {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        padding: 9px 14px !important;
        background: white !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #333 !important;
        cursor: pointer !important;
        white-space: nowrap !important;
    }
    
    .ac-spp-mobile-actions .ac-spp-show-all-btn {
        display: flex !important;
        position: static !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 9px 14px !important;
        background: white !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #333 !important;
        cursor: pointer !important;
        box-shadow: none !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
    }
    
    .ac-spp-gallery-carousel {
        border-radius: 12px !important;
        margin-bottom: 0 !important;
    }
    
    .ac-spp-carousel-track {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .ac-spp-carousel-slide {
        aspect-ratio: 3/4 !important;
        border-radius: 12px !important;
    }
    
    .ac-spp-carousel-prev,
    .ac-spp-carousel-next {
        width: 45px !important;
        height: 45px !important;
    }
    
    .ac-spp-carousel-prev {
        left: 12px !important;
    }
    
    .ac-spp-carousel-next {
        right: 12px !important;
    }
    
    .ac-spp-carousel-prev svg,
    .ac-spp-carousel-next svg {
        width: 35px !important;
        height: 35px !important;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .ac-spp-carousel-track {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
    }
    
    .ac-spp-carousel-slide {
        aspect-ratio: 3/4 !important;
    }
}
