/* =========================================
   LAL MIRI ALBUM GALLERY
========================================= */

.lalmiri-gallery {
    position: relative;
    padding: 100px 0;
    background: #fff;
    overflow: hidden;
}


/* Soft Background */

.lalmiri-gallery::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: -220px;
    top: 80px;
    background: #fff3f3;
    border-radius: 50%;
}


/* Heading */

.lalmiri-gallery-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 35px;
}

.gallery-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #d40000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.gallery-label i {
    font-size: 13px;
}

.lalmiri-gallery-head h2 {
    margin: 0;
    color: #251818;
    font-family: "Times New Roman", serif;
    font-size: clamp(36px, 4vw, 50px);
    font-weight: 500;
    line-height: 1.1;
}

.lalmiri-gallery-head h2 span {
    color: #d40000;
}

.lalmiri-gallery-head > p {
    max-width: 390px;
    margin: 0 0 3px;
    color: #777;
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================
   FILTER
========================================= */

.gallery-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.gallery-filter-btn {
    border: 1px solid #eadada;
    background: #fff;
    color: #665b5b;
    padding: 9px 22px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
    transition: all .3s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: #d40000;
    border-color: #d40000;
    color: #fff;
}


/* =========================================
   MASONRY / ALBUM GRID
========================================= */

.lalmiri-gallery-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 15px;
}


/* Gallery Item */

.gallery-item {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.gallery-item > a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .7s ease;
}


/* Album Sizes */

.gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-tall {
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
}


/* =========================================
   OVERLAY
========================================= */

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    background: linear-gradient(
        to bottom,
        rgba(20, 0, 0, .05),
        rgba(20, 0, 0, .72)
    );
    opacity: 0;
    transition: opacity .4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.08);
}


/* Category */

.gallery-category {
    align-self: flex-start;
    padding: 6px 11px;
    background: #d40000;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* Bottom */

.gallery-overlay-bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
}

.gallery-overlay-bottom h3 {
    margin: 0;
    color: #fff;
    font-family: "Times New Roman", serif;
    font-size: 21px;
    font-weight: 500;
}


/* View Icon */

.gallery-view {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    transition: all .3s ease;
}

.gallery-view:hover {
    background: #fff;
    color: #d40000;
}


/* =========================================
   BOTTOM BUTTON
========================================= */

.gallery-bottom {
    text-align: center;
    margin-top: 35px;
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 23px;
    background: #d40000;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    transition: all .3s ease;
}

.gallery-btn:hover {
    background: #9d0000;
    color: #fff;
    transform: translateY(-2px);
}

.gallery-btn i {
    transition: transform .3s ease;
}

.gallery-btn:hover i {
    transform: translateX(5px);
}


/* =========================================
   HIDDEN FILTER
========================================= */

.gallery-item.gallery-hidden {
    display: none;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {

    .lalmiri-gallery {
        padding: 75px 0;
    }

    .lalmiri-gallery-head {
        display: block;
    }

    .lalmiri-gallery-head > p {
        margin-top: 15px;
        max-width: 600px;
    }

    .lalmiri-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

}


@media (max-width: 575px) {

    .lalmiri-gallery {
        padding: 60px 0;
    }

    .lalmiri-gallery-head h2 {
        font-size: 34px;
    }

    .gallery-filter {
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-bottom: 25px;
    }

    .gallery-filter-btn {
        padding: 8px 15px;
        font-size: 11px;
    }

    .lalmiri-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 160px;
        gap: 8px;
    }

    .gallery-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-wide {
        grid-column: span 2;
    }

    .gallery-overlay {
        padding: 10px;
    }

    .gallery-overlay-bottom h3 {
        font-size: 15px;
    }

    .gallery-view {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        font-size: 10px;
    }

    .gallery-category {
        padding: 5px 7px;
        font-size: 8px;
    }

}