﻿/* =========================================================
   MAU FEEDS - GALLERY PAGE
   Page-specific CSS only
========================================================= */


/* =========================================================
   1. GALLERY SECTION
========================================================= */

.gallery-section {
    padding-top: 30px;
    padding-bottom: 55px;
}

.gallery-section-heading {
    margin-bottom: 22px;
}

    .gallery-section-heading .mau-eyebrow {
        margin-bottom: 5px;
    }

    .gallery-section-heading .mau-section-title {
        margin-bottom: 0;
    }


/* =========================================================
   2. FILTER
========================================================= */

.gallery-filter {
    margin-bottom: 20px;
}

    .gallery-filter button {
        min-width: 104px;
    }


/* =========================================================
   3. GALLERY GRID
========================================================= */

.gallery-grid {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
}

.gallery-col {
    transition: opacity 0.2s ease;
}

    .gallery-col.gallery-hidden {
        display: none;
    }


/* =========================================================
   4. GALLERY ITEM
   mau-gallery-item already exists in site.css.
   Here we only add page-specific behaviour.
========================================================= */

.gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

    .gallery-item img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 63, 36, 0);
    color: var(--mau-white);
    opacity: 0;
    transition: all 0.25s ease;
}

    .gallery-item-overlay i {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        background: rgba(0, 85, 47, 0.85);
        font-size: 1rem;
    }

.gallery-item:hover .gallery-item-overlay {
    background: rgba(0, 63, 36, 0.25);
    opacity: 1;
}


/* =========================================================
   5. PREVIEW MODAL
========================================================= */

.gallery-preview-modal .modal-dialog {
    max-width: 1100px;
}

.gallery-preview-modal .modal-content {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-md);
    background-color: rgba(0, 35, 20, 0.97);
}

.gallery-preview-image-wrap {
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 80px;
}

    .gallery-preview-image-wrap img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }


/* =========================================================
   6. MODAL CONTROLS
========================================================= */

.gallery-preview-close {
    position: absolute;
    z-index: 5;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: var(--mau-white);
    font-size: 1rem;
}

    .gallery-preview-close:hover {
        background: var(--mau-gold);
        border-color: var(--mau-gold);
        color: var(--mau-white);
    }

.gallery-preview-nav {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: var(--mau-white);
    font-size: 1.1rem;
}

    .gallery-preview-nav:hover {
        background: var(--mau-gold);
        border-color: var(--mau-gold);
        color: var(--mau-white);
    }

.gallery-preview-prev {
    left: 18px;
}

.gallery-preview-next {
    right: 18px;
}


/* =========================================================
   7. RESPONSIVE
========================================================= */

@media (max-width: 767.98px) {

    .gallery-section {
        padding-top: 35px;
        padding-bottom: 45px;
    }

    .gallery-filter {
        gap: 8px;
    }

        .gallery-filter button {
            min-width: auto;
            padding-left: 13px;
            padding-right: 13px;
        }

    .gallery-preview-modal .modal-dialog {
        margin: 10px;
    }

    .gallery-preview-modal .modal-content {
        min-height: 65vh;
    }

    .gallery-preview-image-wrap {
        height: 65vh;
        padding: 45px 50px;
    }

    .gallery-preview-nav {
        width: 38px;
        height: 38px;
    }

    .gallery-preview-prev {
        left: 10px;
    }

    .gallery-preview-next {
        right: 10px;
    }
}


@media (max-width: 575.98px) {

    .gallery-filter button {
        padding: 6px 11px;
        font-size: 11px;
    }

    .gallery-preview-image-wrap {
        height: 60vh;
        padding: 45px 42px;
    }
}
