﻿/*=========================================================
                LUXURY GALLERY
=========================================================*/

.gallery-section {
    position: relative;
    padding: 120px 0;
    background: #f8f6f2;
    overflow: hidden;
}

    .gallery-section::before {
        content: "";
        position: absolute;
        top: -150px;
        right: -120px;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: rgba(212,175,55,.05);
    }

    .gallery-section::after {
        content: "";
        position: absolute;
        bottom: -120px;
        left: -120px;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: rgba(107,15,26,.05);
    }

/*=========================================================
                GALLERY GRID
=========================================================*/

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-auto-rows: 280px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    transition: .45s;
}

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item.wide {
        grid-column: span 2;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: .8s;
    }

    .gallery-item:hover img {
        transform: scale(1.12);
    }

    /*=========================================================
                GOLD BORDER
=========================================================*/

    .gallery-item::after {
        content: "";
        position: absolute;
        inset: 0;
        border: 2px solid transparent;
        border-radius: 20px;
        transition: .4s;
        pointer-events: none;
    }

    .gallery-item:hover::after {
        border-color: #D4AF37;
    }

/*=========================================================
                OVERLAY
=========================================================*/

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.10));
    color: #fff;
    opacity: 0;
    transition: .45s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #D4AF37;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 600;
}

.gallery-overlay h4 {
    font-family: "Cormorant Garamond",serif;
    font-size: 34px;
    margin-bottom: 20px;
    line-height: 1.2;
}

/*=========================================================
                BUTTON
=========================================================*/

.gallery-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #D4AF37;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: .35s;
}

    .gallery-btn:hover {
        background: #6B0F1A;
        color: #fff;
        transform: rotate(90deg);
    }

/*=========================================================
                HOVER EFFECT
=========================================================*/

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,.18);
}

/*=========================================================
                RESPONSIVE
=========================================================*/

@media(max-width:1199px) {

    .gallery-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media(max-width:991px) {

    .gallery-section {
        padding: 90px 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2,1fr);
        grid-auto-rows: 250px;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 2;
    }
}

@media(max-width:767px) {

    .gallery-section {
        padding: 70px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-overlay {
        opacity: 1;
        padding: 22px;
    }

        .gallery-overlay h4 {
            font-size: 28px;
        }

    .gallery-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

@media(max-width:576px) {

    .gallery-grid {
        grid-auto-rows: 220px;
    }

    .gallery-overlay span {
        font-size: 12px;
    }

    .gallery-overlay h4 {
        font-size: 24px;
    }
}
