/* =========================
   GALLERY SECTION
========================= */

.gallery-section {
    padding: 80px 5%;
    background: #111;
}

.gallery-heading {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-heading span {
    color: #ffc107;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.gallery-heading h2 {
    font-size: clamp(35px, 5vw, 65px);
    margin-top: 12px;
    font-weight: 700;
        color: white;

        
}

/* =========================
   GALLERY GRID
========================= */

.gallery-grid {
    max-width: 1400px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* =========================
   IMAGE CARD
========================= */

.gallery-card {
    position: relative;
    height: 420px;
    overflow: hidden;
    cursor: pointer;
    background: #222;
}

/* Image */

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        transform 0.8s cubic-bezier(.2,.7,.2,1),
        filter 0.8s ease;
}

/* =========================
   DARK OVERLAY
========================= */

.gallery-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.92) 0%,
            rgba(0,0,0,0.65) 35%,
            rgba(0,0,0,0.10) 75%,
            rgba(0,0,0,0) 100%
        );

    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

/* =========================
   CONTENT
========================= */

.gallery-content {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 30px;

    z-index: 2;

    transform: translateY(35px);
    opacity: 0;

    transition:
        transform 0.6s cubic-bezier(.2,.7,.2,1),
        opacity 0.5s ease;
}

.gallery-content span {
    color: #ffc107;

    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;

    display: block;
    margin-bottom: 10px;
}

.gallery-content h3 {
    font-size: 30px;
    margin-bottom: 10px;
        color: white;
}

.gallery-content p {
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Button */

.gallery-btn {
    display: inline-block;

    padding: 11px 22px;

    border: 1px solid #ffc107;
    color: #fff;

    text-decoration: none;

    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    transition: 0.3s ease;
}

.gallery-btn:hover {
    background: #ffc107;
    color: #111;
}

/* =========================
   HOVER EFFECT
========================= */

.gallery-card:hover img {
    transform: scale(1.12);
    filter: brightness(0.65);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card:hover .gallery-content {
    opacity: 1;
    transform: translateY(0);
}

/* Yellow line */

.gallery-card::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 0;
    height: 4px;

    background: #ffc107;

    z-index: 5;

    transition: width 0.6s ease;
}

.gallery-card:hover::after {
    width: 100%;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .gallery-section {
        padding: 60px 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card {
        height: 380px;
    }

    .gallery-content h3 {
        font-size: 25px;
    }

}