/**
 * GLA Carousel Gallery - Frontend Styles
 * High specificity to override theme/Elementor styles
 */

/* CSS Variables */
:root {
    --gla-primary-color: #0F4E9E;
    --gla-primary-hover: #181C23;
    --gla-text-color: #333333;
    --gla-text-light: #666666;
}

/* Main Wrapper */
.gla-carousel-wrapper {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: #333333 !important;
    line-height: 1.6 !important;
    position: relative !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.gla-carousel-wrapper *,
.gla-carousel-wrapper *::before,
.gla-carousel-wrapper *::after {
    box-sizing: border-box !important;
}

/* Carousel Container */
.gla-carousel-wrapper .gla-carousel-container {
    position: relative !important;
    margin-bottom: 20px !important;
}

/* Slides Viewport */
.gla-carousel-wrapper .gla-slides-viewport {
    position: relative !important;
    overflow: hidden !important;
}

/* Individual Slide */
.gla-carousel-wrapper .gla-slide {
    display: none !important;
}

.gla-carousel-wrapper .gla-slide.is-active {
    display: block !important;
}

/* Slide Images Section */
.gla-carousel-wrapper .gla-slide-images {
    display: grid !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
}

.gla-carousel-wrapper .gla-slide-images.has-one-image {
    grid-template-columns: 1fr !important;
}

.gla-carousel-wrapper .gla-slide-images.has-two-images {
    grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width: 768px) {
    .gla-carousel-wrapper .gla-slide-images.has-two-images {
        grid-template-columns: 1fr !important;
    }
}

/* Image Container - NO background, NO rounded corners */
.gla-carousel-wrapper .gla-slide-image-container {
    position: relative !important;
    overflow: hidden !important;
    background-color: transparent !important;
    background: none !important;
    border-radius: 0 !important;
    border: none !important;
}

/* Image Button - NO background, NO rounded corners */
.gla-carousel-wrapper .gla-slide-image-button {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    overflow: hidden !important;
}

.gla-carousel-wrapper .gla-slide-image-button img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
}

/* Hover effect */
.gla-carousel-wrapper .gla-slide-image-button.has-lightbox:hover img {
    transform: scale(1.03) !important;
}

/* Slide Content Section */
.gla-carousel-wrapper .gla-slide-content {
    padding: 0 !important;
}

/* Title Row */
.gla-carousel-wrapper .gla-title-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 15px !important;
    width: 100% !important;
}

/* Slide Title */
.gla-carousel-wrapper .gla-slide-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    font-weight: 700 !important;
    color: #333333 !important;
    margin: 0 !important;
    padding: 0 10px !important;
    line-height: 1.3 !important;
    flex: 1 !important;
    text-align: left !important;
}

/* Slide Description */
.gla-carousel-wrapper .gla-slide-description {
    font-size: 1rem !important;
    color: #666666 !important;
    margin-bottom: 20px !important;
}

.gla-carousel-wrapper .gla-slide-description p {
    margin: 0 0 1em 0 !important;
}

.gla-carousel-wrapper .gla-slide-description p:last-child {
    margin-bottom: 0 !important;
}

/* Button Wrapper */
.gla-carousel-wrapper .gla-slide-button-wrapper {
    margin-top: 25px !important;
}

/* Slide Button - NO rounded corners, WHITE text */
.gla-carousel-wrapper .gla-slide-button {
    display: inline-block !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background-color: #0F4E9E !important;
    background: #0F4E9E !important;
    padding: 14px 32px !important;
    border: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.gla-carousel-wrapper .gla-slide-button:hover,
.gla-carousel-wrapper .gla-slide-button:focus,
.gla-carousel-wrapper .gla-slide-button:active {
    background-color: #181C23 !important;
    background: #181C23 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Navigation Arrows - NO background, blue color */
.gla-carousel-wrapper .gla-nav-arrow {
    width: 40px !important;
    height: 40px !important;
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

.gla-carousel-wrapper .gla-nav-arrow:hover {
    background-color: transparent !important;
    background: transparent !important;
}

.gla-carousel-wrapper .gla-arrow-icon {
    width: 28px !important;
    height: 28px !important;
    color: #0F4E9E !important;
}

.gla-carousel-wrapper .gla-nav-arrow:hover .gla-arrow-icon {
    color: #181C23 !important;
}

.gla-carousel-wrapper .gla-arrow-icon svg {
    width: 100% !important;
    height: 100% !important;
    stroke: currentColor !important;
}

/* ============================================
   THUMBNAIL NAVIGATION - HORIZONTAL ROW
   ============================================ */

.gla-carousel-wrapper .gla-thumbnail-nav {
    margin-top: 20px !important;
    padding: 20px 0 !important;
    width: 100% !important;
    display: block !important;
}

.gla-carousel-wrapper .gla-thumbnail-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Individual Thumbnail - force horizontal layout */
.gla-carousel-wrapper .gla-thumbnail-item {
    position: relative !important;
    width: 150px !important;
    height: 100px !important;
    min-width: 150px !important;
    min-height: 100px !important;
    max-width: 150px !important;
    max-height: 100px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 3px solid transparent !important;
    border-radius: 0 !important;
    background-color: #e0e0e0 !important;
    background: #e0e0e0 !important;
    cursor: pointer !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 150px !important;
    box-sizing: border-box !important;
}

.gla-carousel-wrapper .gla-thumbnail-item img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    border: none !important;
}

.gla-carousel-wrapper .gla-thumbnail-item:hover {
    border-color: #0F4E9E !important;
}

.gla-carousel-wrapper .gla-thumbnail-item.is-active {
    border-color: #0F4E9E !important;
}

/* Thumbnail Placeholder */
.gla-carousel-wrapper .gla-thumbnail-placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #666666 !important;
    background-color: #e0e0e0 !important;
}

@media (max-width: 768px) {
    .gla-carousel-wrapper .gla-thumbnail-item {
        width: 120px !important;
        height: 80px !important;
        min-width: 120px !important;
        min-height: 80px !important;
        max-width: 120px !important;
        max-height: 80px !important;
        flex: 0 0 120px !important;
    }
    
    .gla-carousel-wrapper .gla-thumbnail-track {
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .gla-carousel-wrapper .gla-thumbnail-item {
        width: 100px !important;
        height: 65px !important;
        min-width: 100px !important;
        min-height: 65px !important;
        max-width: 100px !important;
        max-height: 65px !important;
        flex: 0 0 100px !important;
    }
}

/* Autoplay Toggle */
.gla-carousel-wrapper .gla-autoplay-toggle {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    width: 36px !important;
    height: 36px !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
}

.gla-carousel-wrapper .gla-autoplay-toggle svg {
    width: 16px !important;
    height: 16px !important;
    color: #333333 !important;
}

/* Lightbox */
.gla-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

.gla-lightbox.is-open {
    display: flex !important;
}

.gla-lightbox-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    cursor: pointer !important;
}

.gla-lightbox-content {
    position: relative !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    z-index: 1 !important;
}

.gla-lightbox-image {
    display: block !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

.gla-lightbox-close {
    position: absolute !important;
    top: -50px !important;
    right: 0 !important;
    width: 40px !important;
    height: 40px !important;
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gla-lightbox-close:hover {
    background-color: #ffffff !important;
}

.gla-lightbox-close:hover svg {
    color: #333333 !important;
}

.gla-lightbox-close svg {
    width: 20px !important;
    height: 20px !important;
    color: #ffffff !important;
}

/* Screen Reader Only */
.gla-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
