/*
 Theme Name: Divi Child
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme
 Author: Elegant Themes
 Author URI: https://www.elegantthemes.com
 Template: Divi
 Version: 1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */
/* Desktop layout: image on the left, text on the right */


.artist-container h1, 
.artist-container h2,  
.artist-container p,
.artist-container a,
.artist-container .breadcrumb{
    color: #72b6bb;
}

.artist-container .breadcrumb, .artist-container .breadcrumb a{
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 700;
    margin: 20px 0;
}

.artist-container h1{
    font-size: 26px;
    line-height: 24px;
    padding: 20px 0px;
    font-weight: 700;
    margin-bottom: 25px;
}

.artist-container h2{
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    margin: 30px 0;
}

.artist-container .artist-product .product-details p{
    font-size: 16px;
    line-height: 16px;
    padding: 5px 0;
    font-weight: 600;
}

.artist-container .artist-product .product-details {
    padding: 10px 0;
}

.artist-container .artist-products{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.artist-description{
    margin-bottom: 60px;
}

.artist-description p{
    font-size: 16px;
    font-weight: 700;
}
.artist-container .artist-products .artist-product a img {
    height: 350px;
    object-fit: cover;
    width: 100%;
}



.artist-container.container {
    padding: 40px 0;
}

@media(max-width:820px){
    .artist-container .artist-products .artist-product a img {
        height: 250px;
    }
}
@media(max-width:768px){
    .artist-container .artist-products {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}
@media(max-width:550px){
    .artist-container .artist-products {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .artist-container .breadcrumb, .artist-container .breadcrumb a{
        font-size: 14px;
    }
    .artist-container.container {
        padding: 30px 0;
    }
}

/*
 Theme Name: Divi Child
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme
 Author: Elegant Themes
 Author URI: https://www.elegantthemes.com
 Template: Divi
 Version: 1.0.0
*/

/* = Theme Customization Starts Here = */

/* Exhibition Page Styling */
.exhibitions-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    position: relative;
}

/* Filter Menu Styling */
.exhibition-filters {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

/* Styling Filter Buttons as Text */
.filter-btn {
    background: none;
    border: none;
    color: #7ab4b9;
    font-size: 17px;
    font-weight: normal;
    cursor: pointer;
    padding: 5px;
    margin: 0;
}

/* Active Filter Styling */
.filter-btn.active {
    font-weight: 800;
    font-size: 19px;
    color: #7ab4b9;
}

/* Exhibition List Layout */
.exhibitions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Exhibition Item Styling */
.exhibition-item {
    width: 100%;
    padding: 20px;
    border-bottom: none;
    margin-bottom: 70px; /* Ensures spacing between exhibitions */
}

/* Exhibition Title Styling */
.exhibition-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #7ab4b9;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Exhibition Description Styling */
.exhibition-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #7ab4b9;
    margin-top: 5px;
}

/* View Collection Button */
.view-collection-btn {
    display: inline-block;
    color: #7ab4b9; /* Text color */
    font-weight: bold;
    font-size: 16px;
    text-decoration: underline; /* Underline text */
    background: none; /* Removes background color */
    border: none; /* Removes any default border */
    padding: 0;
    text-align: right;
    position: relative;
    right: 0;
    margin-top: 3px; /* 7px separation from the carousel */
}

.exhibition-item {
    position: relative;
}

/* Ensures the button aligns with the right edge of the carousel */
/* Adjust the container for precise alignment */
.view-collection-btn-container {
    display: flex;
    justify-content: flex-end; /* Pushes the button to the right */
    width: 1090px; /* Matches carousel width */
    
    margin-right: -10px; /* Moves it 10px to the left */
    margin-top: 7px; /* Ensures 7px space below */
}

/* Ensures the text is aligned properly inside the button */
.view-collection-btn {
    color: #7ab4b9; /* Text color */
    font-weight: bold;
    font-size: 16px;
    text-decoration: underline; /* Underline text */
    background: none; /* No background */
    border: none;
    padding: 0;
    text-align: right; /* Aligns text to the right */
    display: inline-block;
}




.view-collection-btn:hover {
    color: #5d9497; /* Slightly darker blue on hover */
}

/* = Exhibition Carousel Styling = */
.exhibition-carousel {
    position: relative;
    width: 1090px;
    height: 390px;
    overflow: hidden;
    margin-top: 15px;
}

/* Ensures All Carousels Follow Fixed Size */
.exhibition-carousel .carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 1090px;
    height: 390px;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures cropping without zooming */
}

/* Navigation Arrows - Ensure They're Visible */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 15px;
    z-index: 1000; /* Ensures the arrows are always visible */
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure arrows appear properly */
.carousel-nav:before {
    content: '';
    display: block;
}

/* Left Arrow Position */
.carousel-prev {
    left: 0px; /* Moves the left arrow outside the carousel */
}

/* Right Arrow Position */
.carousel-next {
    right: 0px; /* Moves the right arrow outside the carousel */
}

/* Arrow Hover Effect */
.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Ensure arrows are not hidden */
.carousel-nav:not(:empty) {
    display: flex !important;
}

/* Ensure container stays properly structured */
.exhibitions-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* 🟢 FILTER MENU: Desktop - Right Aligned | Mobile - Centered */
.exhibition-filters {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}
/*filter menu Z-index Desktop Problem solving*/
.filter-btn {
    position: relative;
    z-index: 9999;
}

/* On Mobile, center filters */
@media (max-width: 768px) {
    .exhibition-filters {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-bottom: 20px;
    }
}

/* 🟢 EXHIBITION ITEMS: Desktop - Full Width | Mobile - Proper Spacing */
.exhibition-item {
    width: 100%;
    padding: 20px;
    margin-bottom: 70px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .exhibition-item {
        width: 100%;
        padding: 15px;
        text-align: center;
    }
}

/* 🟢 TITLE & DESCRIPTION: Desktop - Left */
.exhibition-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #7ab4b9;
    text-transform: uppercase;
    margin-bottom: 5px;
    text-align: left; /* Ensures left alignment */
}

/* Description Styling */
.exhibition-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #7ab4b9;
    margin-top: 5px;
    text-align: left !important; /* Ensures left alignment */
}
/* On Mobile, Center Title */
@media (max-width: 768px) {
    .exhibition-title {
        font-size: 14px;
        text-align: left;
    }

    .exhibition-description {
        font-size: 12px;
        text-align: center;
    }
}

/* 🟢 VIEW COLLECTION BUTTON: Desktop - Right Aligned | Mobile - Center */
.view-collection-btn-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* On Mobile, Center the Button */
@media (max-width: 768px) {
   .view-collection-btn-container {
        width: 100%; /* Ensure full width */
        justify-content: flex-start !important; /* Align it left */
        padding-left: 10px; /* Fine-tune spacing */
    }

    .view-collection-btn {
        display: inline-block !important; /* Ensure visibility */
        font-size: 14px;
        text-align: right !important; /* Align text to the right */
    }

/* 🟢 CAROUSEL: Properly Sized on Both Desktop & Mobile */
.exhibition-carousel {
    position: relative;
    width: 1090px;
    height: 390px;
    overflow: hidden;
    margin-top: 15px;
}

/* On Mobile, Adjust Carousel Size */
@media (max-width: 768px) {
    .exhibition-carousel {
        width: 100%;
        height: auto;
        max-height: 250px;
    }

    .carousel-slide {
        min-width: 100%;
        height: 250px;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* 🟢 NAVIGATION ARROWS: Desktop - Outside | Mobile - Inside but Visible */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 15px;
    z-index: 1000;
    transition: background 0.3s;
}

/* Left Arrow */
.carousel-prev {
    left: -70px;
}

/* Right Arrow */
.carousel-next {
    right: -70px;
}

/* On Mobile, Adjust Arrow Positions */
@media (max-width: 768px) {
    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }

    .carousel-nav {
        font-size: 18px;
        padding: 10px;
    }
}
}

/* Desktop layout: image on the left, text on the right */
#artist-name-shortcode,
.artist-name-shortcode {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #79b4b7 !important;
}

#artist-description-shortcode,
.artist-description-shortcode {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #79b4b7 !important;
}