/* ===== GALLERY HERO ===== */
.gallery-hero {
    position: relative;
    width: 100%;
    min-height: 300px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    display: flex;
    align-items: flex-end;
}

.gallery-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
    z-index: 1;
}

.gallery-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.gallery-hero__content {
    padding-top: 60px;
    padding-bottom: 50px;
}

/* ===== BREADCRUMB ===== */
.gallery-breadcrumb ol {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.gallery-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.gallery-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gallery-breadcrumb a:hover {
    color: var(--pix-main-color);
}

.gallery-breadcrumb .current {
    color: #ffffff;
    font-weight: 600;
}

.gallery-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* ===== HERO TITLE ===== */
.gallery-hero__title {
    color: #ffffff;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .gallery-hero {
        min-height: 180px;
    }

    .gallery-hero__content {
        padding-bottom: 36px;
    }
}


/* ========================================
   GALLERY STYLES
   Shared card styles, carousel, archive layout
   ======================================== */


/* ----------------------------------------
   SHARED CARD STYLES
   ---------------------------------------- */

.image-overlay-card {
    /* overflow:hidden intentionally omitted here —
       it clips border-radius when transform fires on hover.
       overflow is handled by .card-ratio instead. */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.image-overlay-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.card-link {
    display: block;
    text-decoration: none;
    position: relative;
}

/* 1:1.5 vertical ratio → padding-top = 150%
   overflow:hidden lives here so border-radius on the card is never clipped */
.card-ratio {
    position: relative;
    width: 100%;
    padding-top: 150%;
    border-radius: 12px;
    overflow: hidden;
}

.card-image-full {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.card-image-full img,
.card-image-full .no-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: 700;
}

.image-overlay-card:hover .card-image-full img,
.image-overlay-card:hover .no-image {
    transform: scale(1.15);
}
/* 
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.8) 100%
    );
} */

.card-overlay-content {
    position: absolute;
    inset: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.overlay-title {
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.view-gallery-btn {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.view-gallery-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateX(5px);
}

.view-gallery-btn svg {
    transition: transform 0.3s ease;
}

.image-overlay-card:hover .view-gallery-btn svg {
    transform: translateX(3px);
}


/* ----------------------------------------
   CAROUSEL
   ---------------------------------------- */

.parent-articles-carousel-wrapper {
    margin: 40px 0;
    position: relative;
}

.parent-articles-carousel .image-overlay-card {
    margin: 0 12px;
}

/* Arrows */
.parent-articles-carousel .slick-arrow {
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.parent-articles-carousel .slick-arrow:before {
    font-size: 24px;
    opacity: 1;
}

.parent-articles-carousel .slick-prev { left: -27px; }
.parent-articles-carousel .slick-next { right: -27px; }

/* Dots */
.parent-articles-carousel .slick-dots li button:before {
    font-size: 12px;
    color: #000;
    opacity: 0.3;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.parent-articles-carousel .slick-dots li:hover button:before {
    opacity: 0.7;
    transform: scale(1.2);
}

.parent-articles-carousel .slick-dots li.slick-active button:before {
    opacity: 1;
    transform: scale(1.3);
}


/* ----------------------------------------
   GALLERY ARCHIVE LAYOUT
   ---------------------------------------- */

.gallery-archive-container {
    max-width: 1400px;
    margin: 100px 0;
}

.archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.archive-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
}

.archive-description {
    font-size: 1.1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Desktop: 3 columns */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

/* Pagination */
.gallery-archive-container .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.gallery-archive-container .page-numbers {
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.gallery-archive-container .page-numbers:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.gallery-archive-container .page-numbers.current {
    background: #333;
    color: #fff;
}

.gallery-archive-container .page-numbers.dots {
    background: transparent;
    border: none;
}

.no-galleries-message {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    padding: 40px 20px;
}


/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .gallery-archive-container {
        margin: 40px 0;
    }

    .archive-header {
        margin-bottom: 30px;
    }

    .archive-header h1 {
        font-size: 2em;
    }

    /* Mobile: 2 columns */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .overlay-title {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .card-overlay-content {
        padding: 20px;
    }

    .view-gallery-btn {
        font-size: 11px;
        padding: 4px 8px;
    }
}