/* -- General -- */

.r_note {
    font-style: italic;
    font-weight: 300;
    font-size: .9em;
}

.r_h2-lines {
    display: inline-block;
    padding: 0 10px;
}
.r_h2-lines::before,
.r_h2-lines::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 2px;
    background-color: var(--accent-color);
}
.r_h2-lines::before {
    right: 100%;
}
.r_h2-lines::after {
    left: 100%;
}

.r_underline-lg {
    position: relative;
    display: block;
    width: 100%;
    height: 8px;
    margin: 10px 0;
    background-color: #d0d0d0;
}
.r_underline-lg::before,
.r_underline-lg::after {
    content: "";
    position: absolute;
    background-color: #d0d0d0;
}
.r_underline-lg::before {
    height: 2px;
    inset: -8px 0 auto;
}
.r_underline-lg::after {
    height: 4px;
    inset: auto 0 -10px;
}



/* -- Color Picker -- */

.r_color-picker-wrapper {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 1fr 1fr;
}
.r_item-text {
    padding: 20px 25px 0;
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    align-self: flex-end;
}
.r_item-colors {
    padding: 0 20px 25px;
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    align-self: flex-start;
}
.r_item-color-picker {
    padding: 20px 25px;
    grid-row: 1 / 3;
    grid-column: 2 / 3;
}

.r_color-picker-preview {
    position: relative;
    display: grid;
    max-width: 550px;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(5, 5, 5, .2);
}
.r_color-picker-preview img {
    display: block;
    width: 100%;
    height: 100%;
}
.r_preview-roof-desat {
    grid-column: 1/2;
    grid-row: 1/2;
}
.r_preview-overlaySvg {
    grid-column: 1/2;
    grid-row: 1/2;
    background-color: #f2f3ec; /* 80 Deg White default color */
    height: 100%;
    width: 100%;
    mix-blend-mode: overlay;
    z-index: 2;
}
.r_preview-house {
    grid-column: 1/2;
    grid-row: 1/2;
    z-index: 3;
}
#r_selected_color {
    position: absolute;
    inset: auto auto 20px 20px;
    text-align: center;
    font-weight: 700;
    margin: 0;
    padding: 5px 15px;
    background-color: #fff;
    font-size: 1em;
    color: #111;
}

.r_gutter-colors {
    margin: 50px auto 20px;
}
.r_col-gallery {
    width: 100%;
}
.r_gutter-colors .swiper-slide {
    width: 100px;
    height: auto;
    transition: opacity .4s;
}
.r_gutter-colors .swiper-slide:hover {
    opacity: .5;
}
.r_gutter-colors .r_color-box {
    display: block;
    width: 100%;
    height: 100px;
}
.r_gutter-colors .r_color-name {
    font-size: .65em;
    font-weight: 500;
    margin: 3px 0 0;
}
.r_gutter-colors .swiper-button-prev,
.r_gutter-colors .swiper-button-next {
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background-color: #111;
    border-radius: 20px;
    width: 20px;
    height: 40px;
    font-weight: 800;
}
.r_gutter-colors .swiper-button-next::after,
.r_gutter-colors .swiper-button-prev::after {
    font-size: 15px;
}
.r_gutter-colors .swiper-button-next {
    right: 5px;
}
.r_gutter-colors .swiper-button-prev {
    left: 5px;
}



/* -- Responsiveness -- */

@media (max-width: 1024px) {
    .r_color-picker-wrapper {
        display: block;
    }
    .r_item-text,
    .r_item-colors,
    .r_item-color-picker {
        padding: 0;
    }
    .r_item-color-picker {
        margin: 50px auto;
    }
}

@media (max-width: 550px) {
    .r_h2-lines {
        padding: 0;
    }
    .r_h2-lines::before,
    .r_h2-lines::after {
        display: none;
    }
}