/* =========================================
   GALLERY PAGE
========================================= */

.gallery {
    background: #fffdf8;
}

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap: 30px;

    margin-top: 50px;
}

.gallery-item {
    position: relative;

    overflow: hidden;

    border-radius: 20px;

    box-shadow:
        0 15px 35px rgba(0,0,0,.08);

    cursor: pointer;
}

.gallery-item img {
    width: 100%;

    height: 280px;

    object-fit: cover;

    transition: .5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;

    inset: 0;

    background: rgba(213,0,0,.75);

    display: flex;

    justify-content: center;
    align-items: center;

    flex-direction: column;

    opacity: 0;

    transition: .4s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: white;

    font-size: 28px;

    margin-bottom: 10px;
}

.gallery-overlay p {
    color: white;

    font-size: 17px;
}


/* =========================================
   WHY BUSINESSES CHOOSE PT. AGM
========================================= */

.why-company {
    width: 100%;
    background: #fffdf8;
}

.why-company h2 {
    text-align: center;
    color: #D50000;
    font-size: 50px;
    margin-bottom: 50px;
}

.features {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 40px;
}

.features > div {
    text-align: center;
    padding: 30px 20px;
}

.features i {
    font-size: 45px;
    color: #D50000;
    margin-bottom: 20px;
}

.features h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
}

.features p {
    color: #666;
    line-height: 1.7;
    font-size: 17px;
    margin: 0;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    .features {
        grid-template-columns: 1fr;
    }

}