/* =========================================
   GALLERY SECTION
========================================= */

.gallery {
    position: relative;
    padding: 50px 0;

    background:
        radial-gradient(
            circle at top left,
            rgba(255, 193, 7, 0.14),
            transparent 42%
        ),
        radial-gradient(
            circle at top right,
            rgba(13, 110, 253, 0.13),
            transparent 45%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(25, 135, 84, 0.14),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #f6f8fb,
            #edf3f7,
            #f1f5f3
        );

    overflow: hidden;
}


/* =========================================
   GALLERY HEADER
========================================= */

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 60px;

    margin-bottom: 70px;
}

.gallery-header > div {
    max-width: 650px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #FFC107;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 20px;
}

.section-tag i {
    font-size: 16px;
}

.gallery-header h2 {
    margin: 0;

    color: #1f2937;

    font-size: clamp(1.8rem, 4vw, 3.8rem);

    font-weight: 800;

    line-height: 1.05;
}

.gallery-header h2 span {
    background: linear-gradient(
        90deg,
        #FFC107,
        #ffe29a
    );

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}

.gallery-header p {
    max-width: 520px;

    margin: 0;

    color: #64748b;

    font-size: 1.05rem;

    line-height: 1.8;
}


/* =========================================
   GALLERY GRID
========================================= */

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(12, 1fr);

    grid-auto-rows: 220px;

    gap: 22px;
}


/* =========================================
   GALLERY ITEMS
========================================= */

.gallery-item {
    position: relative;

    overflow: hidden;

    border-radius: 24px;

    background: #102b2d;

    border: 1px solid rgba(255, 255, 255, 0.1);

    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.7s ease;
}


/* =========================================
   CUSTOM GRID LAYOUT
========================================= */

.gallery-item:nth-child(1) {
    grid-column: span 7;
    grid-row: span 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 5;
    grid-row: span 1;
}

.gallery-item:nth-child(3) {
    grid-column: span 5;
    grid-row: span 1;
}

.gallery-item:nth-child(4) {
    grid-column: span 4;
    grid-row: span 2;
}

.gallery-item:nth-child(5) {
    grid-column: span 4;
    grid-row: span 2;
}

.gallery-item:nth-child(6) {
    grid-column: span 4;
    grid-row: span 2;
}


/* =========================================
   IMAGE OVERLAY
========================================= */

.gallery-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    padding: 30px;

    background:
        linear-gradient(
            to top,
            rgba(4, 20, 22, 0.95),
            rgba(4, 20, 22, 0.25),
            transparent
        );

    opacity: 0;

    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.08);
}


/* =========================================
   OVERLAY TEXT
========================================= */

.gallery-overlay div {
    transform: translateY(25px);

    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay div {
    transform: translateY(0);
}

.gallery-overlay span {
    display: block;

    color: #FFC107;

    font-size: 0.85rem;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    margin-bottom: 8px;
}

.gallery-overlay h3 {
    margin: 0;

    color: #fff;

    font-size: 1.5rem;

    font-weight: 700;
}


/* =========================================
   GALLERY ICON
========================================= */

.gallery-overlay > i {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #FFC107;

    color: #111;

    font-size: 18px;

    transform: translateY(20px);

    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay > i {
    transform: translateY(0);
}


/* =========================================
   GALLERY FOOTER
========================================= */

.gallery-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    margin-top: 60px;

    padding-top: 35px;

    border-top: 2px solid rgba(255, 255, 255, 0.78);
}

.gallery-footer p {
    margin: 0;

    color: #1f2937;

    font-size: 1.05rem;
}

.gallery-btn {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding: 16px 28px;

    border-radius: 50px;

    background: linear-gradient(
        135deg,
        #0D6EFD,
        #198754
    );

    color: #fff;

    text-decoration: none;

    font-weight: 600;

    transition: 0.3s ease;
}

.gallery-btn:hover {
    transform: translateY(-3px);

    color: #fff;

    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.25);
}

.gallery-btn i {
    transition: transform 0.3s ease;
}

.gallery-btn:hover i {
    transform: translateX(5px);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 992px) {

    .gallery {
        padding: 90px 0;
    }

    .gallery-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 25px;

        margin-bottom: 50px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);

        grid-auto-rows: 280px;
    }

    .gallery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {

    .gallery {
        padding: 75px 0;
    }

    .gallery-header h2 {
        font-size: 2.7rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;

        grid-auto-rows: 300px;

        gap: 16px;
    }

    .gallery-item:nth-child(n) {
        grid-column: span 1;
    }

    .gallery-overlay {
        opacity: 1;

        padding: 22px;
    }

    .gallery-overlay div {
        transform: translateY(0);
    }

    .gallery-overlay > i {
        transform: translateY(0);

        width: 45px;
        height: 45px;
    }

    .gallery-footer {
        flex-direction: column;

        align-items: flex-start;

        margin-top: 40px;
    }

}