/* ==========================================
   GALLERY PAGE
========================================== */

.gallery-page {
    width: 100%;
    min-height: 70vh;
    background: #F7F3FF;
    padding-bottom: 70px;
}


/* HEADER */

.gallery-header {
    width: 85%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 55px 0 25px;
}

.gallery-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #6F42C1;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.gallery-header h1 {
    margin: 0 0 10px;
    color: #45208C;
    font-size: 40px;
    font-weight: 800;
}

.gallery-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}


/* ==========================================
   GALLERY GRID
========================================== */

.gallery-grid-section {
    width: 85%;
    max-width: 1350px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 360px);
    gap: 22px;
    justify-content: center;
}


.gallery-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(69,32,140,.08);
    cursor: pointer;
    transition: .2s;
}


.gallery-card:hover {
    transform: translateY(-5px);
}


.gallery-image-wrap {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #EDE4FF;
}


.gallery-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .3s;
}


.gallery-card:hover
.gallery-image-wrap img {
    transform: scale(1.04);
}


.gallery-view {
    position: absolute;
    right: 12px;
    bottom: 12px;

    padding: 6px 11px;

    border-radius: 20px;

    background: rgba(69,32,140,.9);

    color: white;

    font-size: 12px;
    font-weight: 600;
}


.gallery-card-content {
    padding: 17px 18px 19px;
}


.gallery-card-content h3 {
    margin: 0 0 6px;
    color: #45208C;
    font-size: 17px;
}


.gallery-card-content p {
    margin: 0;
    color: #888;
    font-size: 13px;
}

/* ==========================================
   MODAL
========================================== */

.gallery-modal {
    display: none;

    position: fixed;

    z-index: 99999;

    inset: 0;

    padding: 35px 70px;

    align-items: center;
    justify-content: center;

    background: rgba(20,16,27,.90);

    box-sizing: border-box;
}


.gallery-modal.show {
    display: flex;
}


.gallery-modal-open {
    overflow: hidden;
}


.gallery-modal-content {
    width: min(1000px,82vw);

    max-height: 90vh;

    overflow: auto;

    background: white;

    border-radius: 22px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.35);
}


.gallery-modal-content > img {
    display: block;

    width: 100%;

    max-height: 62vh;

    object-fit: contain;

    background: #15121A;
}


.gallery-modal-info {
    padding: 22px 25px 25px;
}


.gallery-modal-info h2 {
    margin: 0 0 5px;

    color: #45208C;

    font-size: 25px;
}


.gallery-modal-info p {
    margin: 4px 0;

    color: #777;

    line-height: 1.6;
}


#modalGalleryDescription:empty {
    display: none;
}


/* CLOSE */

.gallery-close {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 45px;
    height: 45px;

    border: none;

    border-radius: 50%;

    background: rgba(255,255,255,.12);

    color: white;

    font-size: 31px;

    cursor: pointer;
}


/* ARROWS */

.gallery-modal-btn {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 48px;
    height: 48px;

    border: none;

    border-radius: 50%;

    background: #6F42C1;

    color: white;

    font-size: 25px;

    cursor: pointer;
}


.gallery-modal-btn:hover {
    background: #45208C;
}


.gallery-prev {
    left: 20px;
}


.gallery-next {
    right: 20px;
}
