/**
 * Exhibition Pages Styling - Glozin Theme Compatible
 * Version: 4.3.1
 * Only styles exhibition-specific elements, uses Glozin's product grid
 */

/* =============================================================================
   LIST VIEW SUPPORT - Ensure Glozin list view styles apply
   ============================================================================= */

/* Force list view styles for exhibition pages - ULTRA SPECIFIC to override d-none */
.glozin-shop-content ul.products.product-card-layout-list li.product .product-inner {
    display: flex !important;
    gap: 30px;
    align-items: center;
}

.glozin-shop-content ul.products.product-card-layout-list li.product .product-thumbnail {
    width: 30% !important;
    flex-shrink: 0;
}

.glozin-shop-content ul.products.product-card-layout-list li.product .product-thumbnail .product-featured-icons {
    display: none !important;
}

.glozin-shop-content ul.products.product-card-layout-list li.product .product-summary {
    flex: 1 !important;
    max-width: 70% !important;
    margin-top: 0 !important;
    text-align: start !important;
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: column;
}

/* Override d-none class for short description in list view - MUST be more specific */
.glozin-shop-content ul.products.product-card-layout-list li.product .short-description.d-none {
    display: block !important;
    margin-top: 15px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box !important;
}

/* Fallback without d-none class */
.glozin-shop-content ul.products.product-card-layout-list li.product .short-description {
    display: block !important;
    margin-top: 15px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box !important;
}

/* Override d-none class for buttons in list view - MUST be more specific */
.glozin-shop-content ul.products.product-card-layout-list li.product .product-list-featured-icons.d-none {
    margin-top: 25px;
    display: flex !important;
    width: 100%;
    gap: 10px;
}

/* Fallback without d-none class */
.glozin-shop-content ul.products.product-card-layout-list li.product .product-list-featured-icons {
    margin-top: 25px;
    display: flex !important;
    width: 100%;
    gap: 10px;
}

.glozin-shop-content ul.products.product-card-layout-list li.product {
    width: 100% !important;
    margin-bottom: 30px;
}

/* Mobile responsive for list view */
@media (max-width: 600px) {
    .glozin-shop-content ul.products.product-card-layout-list li.product .product-inner {
        flex-direction: column !important;
        gap: 15px;
    }
    
    .glozin-shop-content ul.products.product-card-layout-list li.product .product-thumbnail {
        width: 100% !important;
    }
    
    .glozin-shop-content ul.products.product-card-layout-list li.product .product-summary {
        max-width: 100% !important;
    }
}

/* =============================================================================
   GALLERY SLIDER
   ============================================================================= */

.exhibition-gallery-slider {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    background: #f8f8f8;
}

.gallery-carousel-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-slides {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
}

/* =============================================================================
   EXHIBITION HEADER
   ============================================================================= */

.exhibition-header-section {
    margin-bottom: 50px;
    padding: 40px 0;
}

.exhibition-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

/* Left Column: Exhibition Info */
.exhibition-info-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exhibition-type-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin: 0;
}

.exhibition-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin: 10px 0 0 0;
    color: #000;
}

.exhibition-dates {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    margin: 10px 0 0 0;
    color: #000;
}

.exhibition-location {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
    margin: 5px 0 0 0;
}

/* Right Column: About Section */
.exhibition-about-column {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exhibition-about-column h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #000;
}

.exhibition-about-column p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

.exhibition-more-info-btn {
    display: inline-block;
    color: #000;
    text-decoration: underline;
    font-size: 15px;
    font-weight: 500;
    margin-top: 5px;
    width: fit-content;
}

.exhibition-more-info-btn:hover {
    text-decoration: none;
}

/* =============================================================================
   EXHIBITION INFO SUBPAGE
   ============================================================================= */

.exhibition-info-page {
    padding: 60px 0;
}

.exhibition-info-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.exhibition-info-back {
    margin-bottom: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

.back-link:hover {
    color: #000;
}

.back-link svg {
    width: 20px;
    height: 20px;
}

.exhibition-info-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.exhibition-info-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 30px 0;
}

.exhibition-info-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.exhibition-info-description p {
    margin-bottom: 20px;
}

/* Info Gallery Grid */
.exhibition-info-gallery {
    margin-bottom: 40px;
}

.exhibition-info-gallery h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.info-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.image-caption {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

/* Artists, Links & Press Release */
.exhibition-info-artists h3,
.exhibition-info-links h3,
.exhibition-press-release h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.artists-list,
.external-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.artists-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.artist-role {
    color: #666;
    font-weight: normal;
    font-size: 14px;
}

.external-links-list li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: #000;
    text-decoration: underline;
}

.external-links-list li a:hover {
    text-decoration: none;
}

.external-links-list li a svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

/* Press Release Download Button */
.exhibition-press-release {
    margin-top: 40px;
}

.press-release-download {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 24px;
    background: #f9f9f9;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    color: #000;
}

.press-release-download:hover {
    background: #fff;
    border-color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.press-release-download svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.press-release-download span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.press-release-download strong {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.press-release-download .file-info {
    font-size: 13px;
    color: #666;
    font-weight: normal;
}

/* Info Sidebar */
.exhibition-info-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.info-card {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item {
    margin-bottom: 16px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.info-value {
    font-size: 15px;
    color: #000;
}

.info-value a {
    color: #000;
    text-decoration: underline;
}

.info-value a:hover {
    text-decoration: none;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.status-open {
    background: #e6f4ea;
    color: #1e7e34;
}

.status-upcoming {
    background: #fff8e1;
    color: #f57c00;
}

.status-closed {
    background: #f5f5f5;
    color: #666;
}

/* Visit Info Card */
.info-card-visit p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 16px;
}

.get-directions {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    color: #000;
    text-decoration: underline;
}

.get-directions:hover {
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn-primary:hover {
    background: #333;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 1024px) {
    .exhibition-header-grid,
    .exhibition-info-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .exhibition-title,
    .exhibition-info-title {
        font-size: 32px;
    }

    .gallery-slides {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .exhibition-header-section {
        padding: 30px 0;
    }
    
    .exhibition-header-grid {
        gap: 30px;
    }

    .exhibition-title,
    .exhibition-info-title {
        font-size: 28px;
    }
    
    .exhibition-dates {
        font-size: 18px;
    }

    .gallery-slides {
        height: 300px;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .exhibition-about-column {
        padding: 25px;
    }

    .info-gallery-grid {
        grid-template-columns: 1fr;
    }

    .exhibition-info-sidebar {
        position: static;
    }
}

/* =============================================================================
   EXHIBITION GALLERY (ELEMENTOR IMAGE CAROUSEL STYLE)
   ============================================================================= */

.exhibition-gallery-section {
    width: 100%;
    padding: 60px 0;
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.exhibition-gallery-section .glozin-image-carousel {
    max-width: 1000px;
    margin: 0 auto;
}

/* Gallery Items */
.exhibition-gallery-section .glozin-image-carousel__item {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #e5e5e5 !important;
}

.exhibition-gallery-section .glozin-image-carousel__item .gz-ratio {
    display: block;
    width: 100%;
    position: relative;
    padding-bottom: 75%; /* 4:3 aspect ratio, adjust as needed */
}

.exhibition-gallery-section .glozin-image-carousel__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

/* Image Captions */
.exhibition-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    font-size: 14px;
    color: #666;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #e5e5e5;
}

/* Responsive */
@media (max-width: 768px) {
    .exhibition-gallery-section {
        padding: 40px 0;
    }
    
    .exhibition-gallery-section .glozin-image-carousel__image {
        padding: 15px;
    }
}
