/* Widget gallery-section */

.gallery-section,
.gallery-section * {
    box-sizing: border-box;
}

.gallery-section {
    position: relative;
    width: 100%;
    height: 377px;
    overflow: hidden;
}

.gallery-section__grid {
    width: 100%;
    height: 100%;
}

.gallery-section__grid--desktop {
    display: flex;
}

.gallery-section__grid--mobile {
    display: none;
}

.gallery-section__item {
    position: relative;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    transition: transform 0.7s ease, filter 0.7s ease;
}

.gallery-section__grid--desktop .gallery-section__item {
    width: 25%;
    height: 100%;
}

.gallery-section__grid--desktop .gallery-section__item:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.gallery-section__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(9, 14, 26, 0.4);
    pointer-events: none;
}

.gallery-section__cta-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-section__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.875rem 2rem;
    border: 1px solid #ffffff;
    border-radius: 0;
    background: #ffffff;
    color: #090e1a;
    font-family: var(--font-body, "Poppins", sans-serif);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.gallery-section__cta:hover,
.gallery-section__cta:focus-visible {
    background: rgba(255, 255, 255, 0.9);
    color: #090e1a;
    text-decoration: none;
}

.gallery-section__cta:focus-visible {
    outline: 2px solid #f47a34;
    outline-offset: 3px;
}

/*RESPONSIVE*/

/*phone*/
@media (max-width: 767px) {

    .gallery-section__grid--desktop {
        display: none;
    }

    .gallery-section__grid--mobile {
        display: flex;
        flex-direction: column;
    }

    .gallery-section__grid--mobile .gallery-section__item {
        width: 100%;
        height: 50%;
    }

}

/*tablet*/
@media (min-width: 768px) and (max-width: 1023px) {

    .gallery-section {
        height: 200px;
    }

}

/*mobile and tablet*/
@media (max-width: 1023px) {

}

/*desktop*/
@media (min-width: 1025px) {

}

/*laptop 1*/
@media (min-width: 1024px) and (max-width: 1439px) {

    .gallery-section {
        height: 290px;
    }

    .gallery-section__cta {
        min-height: 2rem;
        padding: 0.75rem 2rem;
        font-size: 0.75rem;
    }

}

/*laptop 2*/
@media (min-width: 1440px) and (max-width: 1700px) {

}

/*RESPONSIVE*/

/* mobile paragraph minimum */
@media (max-width: 767px) {
    .gallery-section p {
        font-size: max(0.9375rem, 1em);
    }
}
