.home-gallery-widget {
    padding: 58px 0 72px;
    background: #f7f7f7;
    font-family: Quicksand, sans-serif;
}

.home-gallery-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 14px;
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 26px;
    border: 1px solid #e2e2e2;
    background: #fff;
    box-shadow: 0 28px 60px rgba(12, 26, 44, .08);
}

.home-gallery-main,
.home-gallery-hero,
.home-gallery-grid,
.home-gallery-card {
    min-width: 0;
}

.home-gallery-hero,
.home-gallery-card {
    position: relative;
    display: block;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: #07101b;
}

.home-gallery-hero {
    min-height: 444px;
    border-radius: 9px;
}

.home-gallery-hero__media,
.home-gallery-hero__media img,
.home-gallery-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-gallery-hero__media img,
.home-gallery-card img {
    object-fit: cover;
    transition: transform .35s ease;
}

.home-gallery-hero:hover img,
.home-gallery-card:hover img {
    transform: scale(1.04);
}

.home-gallery-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 7, 14, .88) 0%, rgba(0, 7, 14, .63) 46%, rgba(0, 7, 14, .18) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .62));
}

.home-gallery-hero__content {
    position: relative;
    z-index: 2;
    width: min(430px, 82%);
    padding: 58px 0 0 36px;
}

.home-gallery-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #ff7b22;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .03em;
}

.home-gallery-hero h2 {
    margin: 0 0 22px;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 0;
}

.home-gallery-hero p {
    margin: 0 0 42px;
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.65;
}

.home-gallery-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-gallery-buttons span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 19px;
    border: 1px solid #f27d24;
    border-radius: 5px;
    color: #fff;
    background: #f27d24;
    font-size: 12px;
    font-weight: 900;
}

.home-gallery-buttons .is-outline {
    border-color: rgba(255, 255, 255, .48);
    background: rgba(0, 0, 0, .22);
    backdrop-filter: blur(6px);
}

.home-gallery-counter {
    position: absolute;
    left: 36px;
    bottom: 32px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.home-gallery-counter span {
    color: rgba(255, 255, 255, .74);
}

.home-gallery-counter i {
    display: block;
    width: 158px;
    height: 4px;
    margin-left: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f27d24 0 23%, rgba(255, 255, 255, .38) 23% 100%);
}

.home-gallery-hero__arrows {
    position: absolute;
    right: 30px;
    bottom: 22px;
    z-index: 4;
    display: flex;
    gap: 12px;
}

.home-gallery-arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    cursor: pointer;
}

.home-gallery-arrow.is-next {
    color: #111827;
    background: #fff;
}

.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.home-gallery-card {
    min-height: 215px;
    border-radius: 8px;
}

.home-gallery-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .82));
}

.home-gallery-card__content {
    position: absolute;
    left: 19px;
    right: 58px;
    bottom: 19px;
    z-index: 2;
}

.home-gallery-card__content span {
    display: block;
    margin-bottom: 8px;
    color: #ff8b24;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.home-gallery-card:nth-child(2) .home-gallery-card__content span {
    color: #61d66f;
}

.home-gallery-card:nth-child(3) .home-gallery-card__content span {
    color: #3077ff;
}

.home-gallery-card:nth-child(4) .home-gallery-card__content span {
    color: #a26cff;
}

.home-gallery-card__content strong {
    display: block;
    min-height: 34px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
}

.home-gallery-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 13px;
    color: rgba(255, 255, 255, .78);
}

.home-gallery-card__meta small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
}

.home-gallery-card__arrow {
    position: absolute;
    right: 18px;
    bottom: 31px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    color: #fff;
}

@media (max-width: 1100px) {
    .home-gallery-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .home-gallery-widget {
        padding: 38px 0 48px;
    }

    .home-gallery-shell {
        width: min(100% - 18px, 1440px);
        padding: 14px;
    }

    .home-gallery-hero {
        min-height: 500px;
    }

    .home-gallery-hero__content {
        width: calc(100% - 48px);
        padding: 36px 24px 0;
    }

    .home-gallery-hero h2 {
        font-size: 31px;
    }

    .home-gallery-counter {
        left: 24px;
        bottom: 28px;
    }

    .home-gallery-counter i {
        width: 92px;
    }

    .home-gallery-hero__arrows {
        right: 22px;
        bottom: 18px;
    }

    .home-gallery-grid {
        grid-template-columns: 1fr;
    }
}
