.granite-overview {
    background: linear-gradient(180deg, #fff 0%, #f8f7f5 100%);
}

.granite-overview__layout {
    display: grid;
    gap: 54px;
    align-items: center;
}

.granite-overview__main {
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: 5px;
    background: #111;
    box-shadow: 0 26px 80px rgba(17, 17, 17, .12);
}

.granite-overview__main img {
    width: 100%;
    min-height: 360px;
    object-fit: cover;
}

.granite-overview__thumbs {
    display: grid;
    grid-template-columns: auto repeat(4, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: center;
}

.granite-overview__arrow {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #111;
}

.granite-overview__thumb {
    display: block;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 4px;
    background: transparent;
}

.granite-overview__thumb.active {
    border-color: #c8a46b;
}

.granite-overview__thumb img {
    width: 100%;
    aspect-ratio: 1.15;
    object-fit: cover;
}

.granite-overview__content {
    max-width: 590px;
}

.granite-overview__content > span,
.granite-benefits__heading span,
.granite-gallery__heading span,
.granite-related__heading span {
    display: inline-block;
    margin-bottom: 15px;
    color: #c8a46b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.granite-overview__content h2,
.granite-benefits__heading h2,
.granite-gallery__heading h2,
.granite-related__heading h2 {
    margin: 0;
    color: #111;
    font-family: "Playfair Display", serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.12;
}

.granite-overview__content h2::after,
.granite-benefits__heading h2::after,
.granite-gallery__heading h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin-top: 20px;
    background: #c8a46b;
}

.granite-overview__content p {
    margin: 28px 0 42px;
    color: #2b2b2b;
    font-size: 15px;
    line-height: 1.95;
}

.granite-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 0 0 44px;
}

.granite-specs div {
    text-align: center;
}

.granite-specs dt {
    display: grid;
    gap: 12px;
    justify-items: center;
    margin-bottom: 4px;
    color: #111;
    font-size: 13px;
    font-weight: 800;
}

.granite-specs i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(200, 164, 107, .44);
    border-radius: 50%;
    color: #c8a46b;
    font-size: 23px;
}

.granite-specs dd {
    margin: 0;
    color: #6b6b6b;
    font-size: 13px;
}

.granite-overview__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 15px 30px;
    border: 1px solid #c8a46b;
    border-radius: 3px;
    background: #c8a46b;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.granite-benefits,
.granite-gallery {
    position: relative;
    overflow: hidden;
    padding: 76px 0;
    color: #fff;
    background: #111;
}

.granite-benefits__media {
    position: absolute;
    inset: 0;
}

.granite-benefits__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .34;
    filter: grayscale(.2) contrast(1.08);
}

.granite-benefits__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 17, 17, .96), rgba(17, 17, 17, .82));
}

.granite-benefits .container,
.granite-gallery .container {
    position: relative;
    z-index: 2;
}

.granite-benefits__heading,
.granite-gallery__heading,
.granite-related__heading {
    max-width: 780px;
    margin: 0 auto 44px;
    text-align: center;
}

.granite-benefits__heading h2,
.granite-gallery__heading h2 {
    color: #fff;
}

.granite-benefits__heading h2::after,
.granite-gallery__heading h2::after {
    margin-right: auto;
    margin-left: auto;
}

.granite-benefits__grid {
    display: grid;
    gap: 28px;
}

.granite-benefit-card {
    text-align: center;
}

.granite-benefit-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    color: #c8a46b;
    font-size: 30px;
}

.granite-benefit-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.granite-benefit-card p {
    max-width: 180px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    line-height: 1.7;
}

.granite-gallery {
    background:
        linear-gradient(rgba(17, 17, 17, .92), rgba(17, 17, 17, .94)),
        url("/images/granite/granite-1.webp") center / cover;
}

.granite-gallery__grid {
    display: grid;
    gap: 22px;
}

.granite-gallery__grid figure {
    min-height: 250px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(200, 164, 107, .32);
    border-radius: 5px;
}

.granite-gallery__grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.granite-related {
    background: linear-gradient(180deg, #fff 0%, #f8f7f5 100%);
}

.granite-related__heading {
    margin-right: 0;
    margin-left: 0;
    text-align: left;
}

.granite-related__rail {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
}

.granite-related__rail > button {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #111;
}

.granite-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.granite-related__grid .product-card {
    min-height: 220px;
}

.granite-related__footer {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.granite-related__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 28px;
    border: 1px solid rgba(17, 17, 17, .62);
    border-radius: 3px;
    background: transparent;
    color: #111;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

@media (min-width: 576px) {
    .granite-benefits__grid,
    .granite-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .granite-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .granite-overview__layout {
        grid-template-columns: minmax(0, .95fr) minmax(420px, .85fr);
        gap: 72px;
    }

    .granite-overview__main img {
        min-height: 500px;
    }

    .granite-overview__content h2,
    .granite-benefits__heading h2,
    .granite-gallery__heading h2,
    .granite-related__heading h2 {
        font-size: 48px;
    }

    .granite-specs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .granite-benefits__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .granite-benefit-card + .granite-benefit-card {
        border-left: 1px solid rgba(200, 164, 107, .25);
    }

    .granite-gallery__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .granite-related__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .granite-overview__content h2,
    .granite-benefits__heading h2,
    .granite-gallery__heading h2,
    .granite-related__heading h2 {
        font-size: 34px;
    }

    .granite-overview__thumbs {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x proximity;
    }

    .granite-overview__arrow {
        display: none;
    }

    .granite-overview__thumb {
        flex: 0 0 88px;
        scroll-snap-align: start;
    }

    .granite-overview__btn {
        width: 100%;
    }

    .granite-related__rail {
        grid-template-columns: 1fr;
    }

    .granite-related__rail > button {
        display: none;
    }
}
