/* ==========================================================================
   Art grid — shared 3-column layout used across:
   - Main art archive/card gallery
   - Taxonomy archives (art_artist / art_location)
   ========================================================================== */

.art-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.art-item {
    /* Card sizes naturally — no clipping/aspect-ratio on the whole card. */
    padding-bottom: 50px;
}

.art-item .uk-cover-container {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.art-item .uk-cover-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* works with or without UIkit JS running */
    display: block;
}

@media (max-width: 767px) {
    .art-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .art-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Single art post — full gallery grid (natural image ratios, not square-cropped)
   ========================================================================== */

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

.art-single-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.art-single-header-grid .art-single-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.art-single-eyebrow {
    opacity: 0.7;
}

@media (max-width: 767px) {
    .art-single-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Filter row spacing (horizontal filter strip)
   ========================================================================== */

/* Non-pressable filter items (artists, for now) — same layout as the links, no pointer/hover.
   Specificity matches .hor-filters-list-item a so it renders identically without needing !important. */
.hor-filters-list-item .hor-filters-button-static {
    display: block;
    font-size: 16px;
    padding: 10px 5px;
    cursor: default;
}

/* ==========================================================================
   Compact "List of Artists" dropdown — sits under the intro text's right
   column on the Art landing page (narrow, thin underline, no drag/scroll).
   ========================================================================== */

/* Right half of the container, plain CSS (no UIkit uk-grid dependency — the
   bare uk-grid *attribute* alone doesn't get UIkit's display:flex, only the
   .uk-grid *class* does, and no component here adds that class for us). */
.artist-filter-col {
    width: 50%;
    margin-left: 50%;
}

@media (max-width: 639px) {
    .artist-filter-col {
        width: 100%;
        margin-left: 0;
    }
}

.hor-filters-compact {
    position: relative;
}

.hor-filters-compact .hor-filters-top {
    border-bottom: 1px solid #000;
    padding-bottom: 8px;
}

.hor-filters-compact .hor-filters-title-compact {
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hor-filters-compact .hor-filters-icon {
    flex: none;
}

/* No override for .hor-filters-bottom's position — it stays the base
   position:absolute overlay (same as every other hor-filters instance), sized
   to this half-width column via .hor-filters-compact being its positioned
   ancestor. Opening it overlays instead of pushing page content down. */

.hor-filters-compact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 20px;
}

@media (max-width: 639px) {
    .hor-filters-compact-list {
        grid-template-columns: 1fr;
    }
}

.hor-filters-compact-list .hor-filters-list-item {
    padding: 6px 0;
    font-size: 1rem;
    white-space: normal;
}

.hor-filters-compact-list .hor-filters-list-item:not(:last-child) {
    margin-right: 0;
}

.gallery-filters:last-child > li:nth-last-child(2) {
    margin-bottom: 0;
}

.gallery-filters:last-child {
    display: flex;
    flex-direction: row;
}

/* ==========================================================================
   Art header image (from ACF field on the gallery.php-templated page)
   ========================================================================== */

.art-header-image {
    position: relative;
    height: 480px;
    overflow: hidden;
    margin-bottom: 60px;
}

.art-header-image img {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%; /* oversized so the parallax translate never reveals empty edges */
    object-fit: cover;
    display: block;
    will-change: transform;
}

.art-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* Subtle darkening so white text stays legible over bright image areas */
    background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15));
    z-index: 1;
}

.art-header-title {
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 12px;
    color: #fff;
}

.art-header-divider {
    display: block;
    font-size: 20px;
    margin: 0 0 12px;
    opacity: 0.9;
}

.art-header-subtitle {
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
}

@media (max-width: 767px) {
    .art-header-image {
        height: 320px;
    }
    .art-header-title {
        font-size: 20px;
    }
    .art-header-subtitle {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .art-header-image img {
        transform: none !important;
        top: 0;
        height: 100%;
    }
}

.gallery-description{
    border: none!important;
}

@media only screen and (min-width: 767px) {
    .artist-filter-container{
        padding-left: 160px;
    }
}

.hor-filters-bottom{
    top: unset;
}

.location-filter-container,.artist-filter-container{
    padding-top: 40px;
    padding-bottom: 40px;
}

.text-underline-btn{
    border-bottom: 1px solid #000;
}

.art-single-gallery-item{
    margin-right: 10px;
}