.block {
    position:relative;
    display:grid;
    overflow-x:clip;
    width:100%;
    min-height:100vh;
}

.pad_top {
    padding-top:10rem;
}
.pad_right {
    padding-right:5vw;
}
.pad_bottom {
    padding-bottom:10rem;
}
.pad_left {
    padding-left:5vw;
}

.bg-img,
.bgvid {
    position: absolute;
    z-index:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

    .fillbg {
        height:100%;
        object-fit:cover;
    }

    .pos_1 {
        top:0;
        left:0;
        object-position: top left;
    }
    .pos_2 {
        top:0;
        object-position: top center;
    }
    .pos_3 {
        top:0;
        right:0;
        object-position: top right;
    }
    .pos_4 {
        left:0;
        object-position: left center;
    }
    .pos_5 {
        margin-block:auto;
        object-position: center;
    }
    .pos_6 {
        right:0;
        object-position: right center;
    }
    .pos_7 {
        left:0;
        bottom:0;
        object-position: bottom left;
    }
    .pos_8 {
        bottom:0;
        object-position: bottom center;
    }
    .pos_9 {
        bottom:0;
        right:0;
        object-position: bottom right;
    }

.text {
    position: relative;
    z-index:2;
    text-wrap: pretty;
    overflow-x:auto;
}

.rs {
    background-color:var(--green);
    position: relative;
    list-style: none;
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
    height:400px;
    max-height:75vh;
    transition:height 1s ease-in-out;
}

.bgrs {
    background-color:var(--green);
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;
    max-height:unset;
    z-index:-1;
}

.rs li {
    -webkit-backface-visibility: hidden;
    position: absolute;
    display: none;
    width: 100%;
    height:100%;
    left: 0;
    top: 0;
    padding:10vw 0;
    margin:0;
    transition:height 1s ease-in-out;
}

.rs li:first-child {
    position: relative;
    display: block;
    float: left;
}

.rs li > img {
    display: block;
    height: auto;
    float: left;
    width: 100%;
    height:100%;
    object-fit: cover;
    border: 0;
    position:absolute;
    inset:0;
    scale:1;
    transition:scale 8s ease-in-out;
}

.dots {
    position:Absolute;
    z-index:1;
}

    .dots-hero {
        right:0;
        bottom:5vw;
        width:min(300px,50%);
    }

.text :is(p,li,td,h1,h2,h3,h4,h5,h6){
    color:#010101;
}

.text :is(ul,ol){
    padding-right:0;
    margin-right:0;
}

.light-text .text :is(p,li,td,h1,h2,h3,h4,h5,h6) {
    color:#fff;
}

    .light-text li::marker {
        color:var(--yellow);
    }

.fw-bg,
.half-bg {
    display:grid;
    grid-template-columns: 1fr 1fr;
    grid-gap:5vw;
    align-items: center;
}

.half-bg :is(.rs,.bg-img,.bgvid) {
    width:60%;
    height:100%;
    object-fit:cover;
    left:40%;
}

.half-bg.flip :is(.rs,.bg-img,.bgvid) {
    left:0%;
}

.fade-bg :is(.rs,.bg-img,.bgvid) {
    mask-image:linear-gradient(270deg, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}

.fade-bg.flip :is(.rs,.bg-img,.bgvid) {
    mask-image:linear-gradient(90deg, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}

.dark_style_img {
    filter: grayscale(1) brightness(0.3);
}

.popup-gallery {
    display:grid;
    /* grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); */
    grid-template-columns: repeat(6,1fr);
}

    .popup-gallery a {
        animation-delay: var(--delay);
        filter:grayscale(1);
        transition:filter 0.5s;
        border:1px solid #fff;
    }

    .popup-gallery img {
        aspect-ratio: 1;
        width:100%;
        height:100%;
        object-fit: cover;
    }

    .popup-gallery a:hover {
        filter:grayscale(0);
    }

.carousel-cell {
    width:26%;
    margin-right:5rem;
}

    .carousel-cell:has(.test-img){
        width:40%;
    }

    .carousel-cell .inner {
        width:100%;
        display:grid;
        grid-template-columns: 50px 5fr;
        grid-gap:1rem;
        padding-block:5vw;
    }

    .carousel-cell .image {
        position:relative;
    }

    .carousel-cell:has(.test-img) .inner {
        grid-template-columns: 1fr 2fr;
    }

    .carousel-cell:has(.test-img) .quotemark {
        width:50px;
        position:absolute;
        right:0;
        top:0;
    }

    .test-img {
        border-radius:100%;
    }

    .carousel-cell p {
        font-style: italic;
        font-weight:300;
    }

    .carousel-cell .name,
    .light-text .carousel-cell .name {
        font-style: normal;
        color:var(--yellow);
        font-weight: bold;
    }

.heading {
    text-align: center;
    padding-inline: 5vw;
    margin:0;
}

.block:has(.tests,.mem-cols,.mem-full),
.block.embed {
    min-height:unset;
}

.faq {
    margin-bottom:1rem;
}

.faq-text > h2 {
    text-align:left;
    margin-bottom:1em;
}

.answer {
    display:none;
    padding-top:1rem;
}

    .question {
        text-decoration: none;
        text-transform: uppercase;
        font-size:1.4rem;
    }

    .open .question {
        color:var(--yellow);
    }

    .question span {
        margin-right:0.5rem;
    }

    .minus {
        display:none;
    }

    .open .minus {
        display:inline-block;
    }

    .open .plus {
        display:none;
    }

.block:has(.mem-cols),
.block.embed {
    padding-block:3rem;
}

.mem-cols {
    display:Grid;
    grid-template-columns: repeat(4,1fr);
    grid-gap:1rem;
}

.mem-outer {
    display:grid;
    grid-template-rows: 2rem 1fr 2rem;
    animation-delay: var(--delay);
}

.mem {
    position:relative;
    background-color:#fff;
    border-radius:1rem;
    grid-row-start: 2;
}

    .mem:has(.special) {
        grid-row-start: 1;
        grid-row: span 3;
    }

    .mem .top {
        display:grid;
        grid-template-columns: 1.4fr 1fr;
        margin-top:2rem;
        grid-gap:1.5rem;
    }

    .top p {
        margin:0;
        text-transform: uppercase;
        font-size:0.65rem;
    }

    .mem :is(p,li) {
        color:#010101;
    }

    .mem .desc {
        padding-inline:1rem;
        padding-bottom:4rem;
    }

    .desc :is(ul,ol) {
        margin-block:1rem;
    }

    .mem .ribbon {
        padding:0.5rem 0.5rem 0.5rem 1rem;
        border-radius:0 0.5rem 0.5rem 0;
    }

    .ribbon h2 {
        font-size: 1.8rem;
        margin:0;
    }

    .top p.price {
        font-size:1.8rem;
        line-height: 0.8;
    }

    .mem .yellow-btn {
        position:absolute;
        bottom:1rem;
        width:70%;
        text-align: center;
        left:15%;
        margin-bottom:0;
    }

    .mem p.special {
        width:fit-content;
        background-color:#444;
        color:#fff;
        float:right;
        padding:0.25rem 2.5rem;
        text-transform: uppercase;
        font-size:0.8rem;
        border-bottom-left-radius: 0.5rem;
        border-top-right-radius:0.9rem;
        margin:0;
    }

    .mem-full .mem {
        display:Grid;
        grid-template-columns: 1fr 1fr;
        overflow-x:clip;
        margin-bottom:3rem;
    }

        .mem-full .mem-outer {
            grid-template-rows: 1fr;
        }

        .mem-full .mem .image img {
            position:Absolute;
            height:100%;
            width:100%;
            object-fit: cover;
            border-radius:1rem 0 0 1rem;
        }

        .mem-full .image {
            position: relative;
        }

        .mem-full .mem h2 {
            color:#010101;
        }

        .light-text .mem-full li::marker {
            color:#010101;
        }

        .mem-full .right {
            padding:3rem;
        }

        .mem-full .top {
            margin-top:0;
            grid-template-columns: 1fr 100px;
        }

        .mem-full .desc {
            padding:0 0 3rem 0;
        }

        .mem-full .yellow-btn {
            width:300px;
            left:unset;
            right:3rem;
        }

table {
    border:none;
    border-collapse: collapse;
}

    main td {
        border:1px solid #222;
        padding:0.75rem;
    }

    main th {
        background-color:var(--yellow);
        color:#000;
        font-family: "Racing Sans One", serif;
        border:1px solid #010101;
        padding:0.75rem;
    }

iframe {
    border:5px solid #999;
}

.block.embed .yellow-btn {
    display:block;
    width:250px;
    text-align: center;
    margin-inline: auto;
    margin-top:3rem;
}

.contact h2 {
    margin-top:3rem;
}

.contact td {
    border:none;
}

.contact form {
    background-color:#2a2a2a;
    padding:3rem;
    border-radius: 1rem;
}

    form input,
    form textarea {
        background-color:#222;
        border-radius:0.25rem;
        color:#fff;
        border:none;
        outline:none;
        padding:0.75rem;
    }

    .contact form h2 {
        margin-top:0;
        font-size:2rem;
    }

    form input .submit {
        
    }

.shard {
    position:absolute;
    top:0;
    left:0;
    width:min(25%,400px);
    z-index:1;
    user-select: none;
    pointer-events: none;
}

    .shard.prev_flip {
        scale: -1 1;
        left:unset;
        right:0;
    }

.circle {
    position:Absolute;
    z-index:3;
    width:min(50px,7.5vw);
    bottom:0;
    left:50%;
    transform:translate(-50%,50%);
}

.videos {
    columns:3;
    gap:3rem;

    & video {
        margin-bottom:3rem;
    }
}

@media screen and (max-width:1300px){
    .mem .top {
        grid-gap:1rem;
    }

    .mem-full .right {
        padding:2rem;
    }

    .mem-full .right h2 {
        font-size:2.5rem;
    }
}

@media screen and (max-width:1100px){
    .popup-gallery {
        grid-template-columns: repeat(4,1fr);
    }

    .videos {
        gap:1.5rem;

        & video {
            margin-bottom:1.5rem;
        }
    }
}

@media screen and (max-width:1000px){
    .fw-bg {
        grid-template-columns: 1fr;
    }

    .fw-bg .dots-hero {
        top:5vw;
        bottom:unset;
    }

    .block h2 {
        font-size:2.5rem;
    }

    .pad_top {
        padding-top:7.5rem;
    }

    .pad_bottom {
        padding-bottom:7.5rem;
    }

    .carousel-cell {
        width:50%;
        margin-right:5vw;
    }

    .carousel-cell:has(.test-img){
        width:65%;
    }

    h1 {
        font-size:3.5rem;
    }

    .mem-cols {
        grid-template-columns: 1fr 1fr;
    }

        .ribbon h2 {
            font-size: 1.8rem;
        }
}

@media screen and (max-width:900px){
    .videos {
        columns:2;
    }
}

@media screen and (max-width:700px){

    .half-bg {
        grid-template-columns: 1fr;
        grid-gap:0;
    }

    .block.half-bg :is(.rs,.bgrs,.bg-img){
        position:static;
    }

    .pad_top {
        padding-top:5vw;
    }
    .pad_bottom {
        padding-bottom:5vw;
    }

    :is(.fade-bg,.fade-bg.flip) :is(.rs,.bg-img) {
        mask-image:linear-gradient(180deg, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
        width:100%;
    }

    .popup-gallery {
        grid-template-columns: repeat(3,1fr);
    }

    .block:first-of-type {
        padding-top:7.5rem;
    }

    .half-bg .dots-hero {
        bottom:unset;
        top:7.5rem;
    }
}

@media screen and (max-width:600px){
    .mem-cols {
        grid-template-columns: 1fr;
    }

    .mem .top {
        margin-top:1rem;
    }

    .pricetext {
        padding-right:0.5rem;
        text-align:center;
    }

    .mem-full .mem {
        grid-template-columns: 1fr;
    }

    .mem-full .mem .image img {
        position: static;
    }

    .mem-full .top {
        grid-template-columns: 1fr;
        margin-bottom:1rem;
        text-align: left;
    }

    .pricetext {
        text-align: left;
    }
}

@media screen and (max-width:500px){
    .carousel-cell {
        width:70%;
    }

    .carousel-cell:has(.test-img){
        width:85%;
    }
    h1,h2,
    .block h2 {
        font-size:2rem;
    }

    .mem-full .top h2 {
        font-size:1.75rem;
    }

    .videos {
        columns:1;
    }
}