/* =========================================================
   LIC PREMIUM GALLERY CATEGORY
   Scoped for Elementor
========================================================= */

.lic-gallery-category {
    --lic-blue: #24549b;
    --lic-blue-dark: #173b70;
    --lic-gold: #f2b800;
    --lic-text: #17243a;
    --lic-muted: #718096;
    --lic-border: #e8edf3;

    position: relative;
    width: 100%;
    padding: 105px 0 110px;
    background: #fff;
    overflow: hidden;
}

.lic-gallery-category,
.lic-gallery-category * {
    box-sizing: border-box;
}

.lic-gallery-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.lic-gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 52px;
}

.lic-gallery-heading {
    max-width: 720px;
}

.lic-gallery-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--lic-blue);
}

.lic-gallery-eyebrow i {
    width: 32px;
    height: 2px;
    display: inline-block;
    background: var(--lic-gold);
}

.lic-gallery-heading h2 {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.04;
    letter-spacing: -2px;
    font-weight: 400;
    color: var(--lic-text);
}

.lic-gallery-heading h2 strong {
    display: block;
    font-weight: 800;
    color: var(--lic-blue);
}

.lic-gallery-heading p {
    max-width: 610px;
    margin: 22px 0 0;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--lic-muted);
}

.lic-gallery-count {
    min-width: 125px;
    padding-left: 25px;
    border-left: 1px solid var(--lic-border);
}

.lic-gallery-count span {
    display: block;
    margin-bottom: 5px;

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--lic-muted);
}

.lic-gallery-count strong {
    font-family: Arial, sans-serif;
    font-size: 48px;
    line-height: 1;
    font-weight: 800;
    color: var(--lic-blue);
}


/* =========================
   FILTER
========================= */

.lic-gallery-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    margin-bottom: 32px;

    border: 1px solid var(--lic-border);
    background: #fafbfd;
    border-radius: 100px;
}

.lic-gallery-filter button {
    appearance: none;
    border: 0;
    outline: none;
    cursor: pointer;

    padding: 13px 23px;
    border-radius: 100px;

    background: transparent;
    color: #68778b;

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;
}

.lic-gallery-filter button:hover {
    color: var(--lic-blue);
}

.lic-gallery-filter button.active {
    color: #fff;
    background: var(--lic-blue);
    box-shadow: 0 8px 22px rgba(36, 84, 155, .18);
}


/* =========================
   GALLERY GRID
========================= */

.lic-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 245px;
    gap: 18px;
}

.lic-gallery-item {
    min-width: 0;
    min-height: 0;

    opacity: 1;
    transform: scale(1);

    transition:
        opacity .35s ease,
        transform .35s ease;
}

.lic-gallery-item.hidden {
    display: none;
}

.lic-gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}

.lic-gallery-wide {
    grid-column: span 2;
}

.lic-gallery-tall {
    grid-row: span 2;
}


/* =========================
   IMAGE
========================= */

.lic-gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #dfe5ec;
}

.lic-gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transform: scale(1.01);

    transition:
        transform .8s cubic-bezier(.2,.7,.2,1),
        filter .5s ease;
}

.lic-gallery-image-overlay {
    position: absolute;
    inset: 0;
}

.lic-gallery-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(13, 31, 57, .48) 0%,
            rgba(13, 31, 57, .03) 35%,
            rgba(13, 31, 57, .78) 100%
        );

    opacity: .85;

    transition: opacity .45s ease;
}

.lic-gallery-image:hover img {
    transform: scale(1.08);
    filter: saturate(1.08);
}

.lic-gallery-image:hover .lic-gallery-overlay {
    opacity: 1;
}


/* =========================
   TOP INFO
========================= */

.lic-gallery-top {
    position: absolute;
    top: 22px;
    left: 22px;
    right: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #fff;
}

.lic-gallery-top span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;

    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;

    backdrop-filter: blur(8px);
}

.lic-gallery-top small {
    padding: 7px 11px;

    color: #fff;
    border: 1px solid rgba(255,255,255,.28);

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;

    backdrop-filter: blur(8px);
}


/* =========================
   BOTTOM CONTENT
========================= */

.lic-gallery-bottom {
    position: absolute;
    left: 24px;
    right: 22px;
    bottom: 22px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

.lic-gallery-bottom span {
    display: block;
    margin-bottom: 7px;

    color: var(--lic-gold);

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lic-gallery-bottom h3 {
    margin: 0;

    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 700;
}

.lic-gallery-bottom a {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    color: var(--lic-blue);
    background: #fff;
    border-radius: 50%;

    font-family: Arial, sans-serif;
    font-size: 20px;
    text-decoration: none;

    transform: translateY(5px);

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;
}

.lic-gallery-bottom a:hover {
    color: #fff;
    background: var(--lic-gold);
    transform: translateY(0) rotate(45deg);
}


/* =========================
   TABLET
========================= */

@media (max-width: 991px) {

    .lic-gallery-category {
        padding: 80px 0 85px;
    }

    .lic-gallery-header {
        align-items: flex-start;
        margin-bottom: 40px;
    }

    .lic-gallery-count {
        min-width: 100px;
    }

    .lic-gallery-count strong {
        font-size: 40px;
    }

    .lic-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }

    .lic-gallery-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .lic-gallery-wide {
        grid-column: span 2;
    }

    .lic-gallery-tall {
        grid-row: span 2;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .lic-gallery-category {
        padding: 65px 0 70px;
    }

    .lic-gallery-container {
        width: min(100% - 28px, 1180px);
    }

    .lic-gallery-header {
        display: block;
        margin-bottom: 30px;
    }

    .lic-gallery-heading h2 {
        font-size: 38px;
        letter-spacing: -1.5px;
    }

    .lic-gallery-heading h2 strong {
        display: inline;
    }

    .lic-gallery-heading p {
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.7;
    }

    .lic-gallery-count {
        display: none;
    }

    .lic-gallery-filter {
        gap: 5px;
        padding: 7px;
        margin-bottom: 22px;

        border-radius: 18px;
    }

    .lic-gallery-filter button {
        padding: 10px 14px;
        font-size: 10px;
    }

    .lic-gallery-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: 285px;
        gap: 12px;
    }

    .lic-gallery-large,
    .lic-gallery-wide,
    .lic-gallery-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .lic-gallery-bottom {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .lic-gallery-bottom h3 {
        font-size: 18px;
    }

    .lic-gallery-bottom a {
        width: 40px;
        height: 40px;
    }

    .lic-gallery-top {
        top: 17px;
        left: 17px;
        right: 17px;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 380px) {

    .lic-gallery-heading h2 {
        font-size: 33px;
    }

    .lic-gallery-filter button {
        padding: 9px 11px;
    }

    .lic-gallery-grid {
        grid-auto-rows: 250px;
    }
}
