﻿/* ==========================================================
   IMAGE GALLERY PAGE
========================================================== */


/* ==========================================================
   MAIN SECTION
========================================================== */

.image-gallery-section {

    padding: 90px 0 100px;

    background:
        linear-gradient(
            135deg,
            #f5f9fc 0%,
            #fffdf3 100%
        );
}


/* ==========================================================
   INTRO
========================================================== */

.gallery-intro {

    max-width: 800px;

    margin: 0 auto 50px;

    text-align: center;
}


/* ==========================================================
   LABEL
========================================================== */

.gallery-label {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.8px;

    margin-bottom: 14px;
}


.gallery-label span {

    width: 32px;

    height: 3px;

    background: var(--yellow);

    border-radius: 5px;
}


/* ==========================================================
   HEADING
========================================================== */

.gallery-intro h2 {

    color: var(--primary-dark);

    font-family: "Playfair Display", serif;

    font-size: clamp(40px, 4vw, 54px);

    line-height: 1.15;

    font-weight: 800;

    margin-bottom: 17px;
}


.gallery-intro h2 span {

    color: var(--primary);

    display: inline-block;
}


/* ==========================================================
   INTRO TEXT
========================================================== */

.gallery-intro p {

    color: #667586;

    font-size: 16px;

    line-height: 1.8;

    max-width: 720px;

    margin: 0 auto;
}


/* ==========================================================
   MAIN GALLERY CARD
========================================================== */

.gallery-main-card {

    background: #ffffff;

    border-radius: 10px;

    border: 1px solid #e2e9ef;

    box-shadow:
        0 12px 40px rgba(20,45,80,.08);

    overflow: hidden;
}


/* ==========================================================
   GALLERY WRAPPER
========================================================== */

.gallery-grid-wrapper {

    padding: 18px;
}


/* ==========================================================
   DATALIST
========================================================== */

.gallery-datalist {

    width: 100% !important;

    border-collapse: separate !important;

    border-spacing: 12px !important;
}


/*
   DataList generates a table.
   Remove old table appearance.
*/

.gallery-datalist > tbody > tr > td {

    border: none !important;

    padding: 0 !important;

    vertical-align: top;
}


/* ==========================================================
   GALLERY ITEM
========================================================== */

.gallery-item {

    background: #ffffff;

    border: 1px solid #e0e7ed;

    border-radius: 8px;

    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(20,45,80,.05);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.gallery-item:hover {

    transform: translateY(-6px);

    box-shadow:
        0 15px 35px rgba(20,45,80,.13);
}


/* ==========================================================
   IMAGE
========================================================== */

.gallery-image-wrap {

    position: relative;

    width: 100%;

    height: 250px;

    overflow: hidden;

    background: #e9eef3;
}


.gallery-image-link {

    display: block;

    width: 100%;

    height: 100%;

    position: relative;

    text-decoration: none;
}


.gallery-image {

    width: 100% !important;

    height: 100% !important;

    object-fit: cover;

    display: block;

    transition:
        transform .5s ease;
}


.gallery-item:hover .gallery-image {

    transform: scale(1.06);
}


/* ==========================================================
   IMAGE OVERLAY
========================================================== */

.gallery-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 9px;

    background:
        rgba(9,47,97,.72);

    color: #ffffff;

    opacity: 0;

    transition: opacity .3s ease;
}


.gallery-item:hover .gallery-overlay {

    opacity: 1;
}


/* ==========================================================
   VIEW ICON
========================================================== */

.gallery-view-icon {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--yellow);

    color: var(--dark);

    font-size: 21px;

    transform: translateY(10px);

    transition: transform .3s ease;
}


.gallery-item:hover .gallery-view-icon {

    transform: translateY(0);
}


.gallery-overlay span {

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.3px;
}


/* ==========================================================
   GALLERY CONTENT
========================================================== */

.gallery-content {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 18px;
}


/* ==========================================================
   CATEGORY ICON
========================================================== */

.gallery-category-icon {

    width: 42px;

    height: 42px;

    min-width: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 6px;

    background: #edf5fb;

    color: var(--primary);

    font-size: 16px;

    transition: .3s;
}


.gallery-item:hover .gallery-category-icon {

    background: var(--yellow);

    color: var(--dark);
}


/* ==========================================================
   CATEGORY TEXT
========================================================== */

.gallery-category-text {

    min-width: 0;

    flex: 1;
}


.gallery-category-text span {

    display: block;

    color: var(--primary);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.3px;

    margin-bottom: 3px;
}


.gallery-category-text h3 {

    color: var(--primary-dark);

    font-family: "Playfair Display", serif;

    font-size: 19px;

    line-height: 1.25;

    font-weight: 800;

    margin: 0;

    word-break: break-word;
}


/* ==========================================================
   ARROW
========================================================== */

.gallery-arrow {

    width: 34px;

    height: 34px;

    min-width: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #f2f5f8;

    color: #768494;

    font-size: 13px;

    transition: .3s;
}


.gallery-item:hover .gallery-arrow {

    background: var(--primary);

    color: #ffffff;

    transform: rotate(45deg);
}


/* ==========================================================
   ERROR
========================================================== */

.gallery-error {

    padding: 0 30px 20px;

    color: #dc3545;

    font-size: 13px;
}


.gallery-error:empty {

    display: none;
}


/* ==========================================================
   BOTTOM NOTE
========================================================== */

.gallery-note {

    display: flex;

    align-items: center;

    gap: 16px;

    margin-top: 25px;

    padding: 20px 25px;

    background: #ffffff;

    border-left: 4px solid var(--yellow);

    border-radius: 6px;

    box-shadow:
        0 5px 20px rgba(20,45,80,.05);
}


/* ==========================================================
   NOTE ICON
========================================================== */

.gallery-note-icon {

    width: 45px;

    height: 45px;

    min-width: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #edf5fb;

    color: var(--primary);

    font-size: 18px;
}


/* ==========================================================
   NOTE TEXT
========================================================== */

.gallery-note strong {

    display: block;

    color: var(--primary-dark);

    font-size: 14px;

    margin-bottom: 3px;
}


.gallery-note p {

    margin: 0;

    color: #6a7888;

    font-size: 13px;

    line-height: 1.6;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991px) {

    .image-gallery-section {

        padding: 75px 0 80px;
    }


    .gallery-image-wrap {

        height: 220px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .image-gallery-section {

        padding: 60px 0 65px;
    }


    .gallery-intro {

        margin-bottom: 35px;
    }


    .gallery-intro h2 {

        font-size: 36px;
    }


    .gallery-intro p {

        font-size: 15px;
    }


    .gallery-grid-wrapper {

        padding: 12px;
    }


    /*
       On mobile each DataList item
       becomes a full-width card.
    */

    .gallery-datalist {

        border-spacing: 0 !important;
    }


    .gallery-datalist > tbody > tr > td {

        display: block;

        width: 100% !important;

        padding: 8px !important;
    }


    .gallery-image-wrap {

        height: 260px;
    }


    .gallery-content {

        padding: 16px;
    }


    .gallery-category-text h3 {

        font-size: 18px;
    }


    .gallery-note {

        align-items: flex-start;

        padding: 17px;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .gallery-intro h2 {

        font-size: 32px;
    }


    .gallery-image-wrap {

        height: 230px;
    }


    .gallery-content {

        padding: 14px;
    }


    .gallery-category-icon {

        width: 38px;

        height: 38px;

        min-width: 38px;
    }


    .gallery-category-text h3 {

        font-size: 17px;
    }

}