/* .gallery */
.gallery{
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.gallery > div,
.gallery > figure,
.gallery > img{
    scroll-snap-align: start;
}
/* a.cta */
a.cta{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--button-size);
    width: 100%;
    background: var(--color-primary);
    color: var(--color-primary-invert);
}
@media screen and (min-width : 651px){
    a.cta{
        padding-left: 1rem;padding-right: 1rem;
    }
}
/* .table-scroll */
.table-scroll{
    max-width: 100vw;
    overflow-x: auto;
}
/* nav.links , nav.list */
nav.links{
    gap: 0.25em;
    display: flex;
    flex-wrap: wrap;
}
nav.list{
    display: grid;
    gap: 0.25em;
}
nav.links a, nav.list > a{
    background: var(--color-surface);
    align-items: center;
    min-height: var(--button-size);
    display: flex;
    border-radius: 0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border: 1px solid var(--color-border);
    width: max-content;
    color: #000;
}
/* grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill , minmax(15rem , 1fr));
    gap: 0.5rem;
}
.grid-image{
    display: grid;
    grid-template-columns: repeat(auto-fill , minmax(250px , 1fr));
}
.grid-image img{
    aspect-ratio: 1/1;
    width: 100%;
    object-fit: cover;
}
@media screen and (max-width : 650px){
    .grid-image{
        grid-template-columns: repeat(3,1fr);
    }
}
/* tile */
.tile {
    display: grid;
    grid-template-columns: repeat(3 , 1fr);
}
.tile.small{
    grid-template-columns: repeat(2 , 1fr);
}
.tile-vary{
    display: grid;
    grid-template-columns: repeat(3 , 1fr);
}
@media screen and (max-width:650px){
    .tile-vary {
        grid-template-columns: repeat(2 , 1fr);
    }
}
/* hero-profile */
#hero-profile h1{
    word-break: normal;
}
#hero-profile > .gallery {
    max-height: 30rem;
}
#hero-profile > .gallery.large{
    max-height: 45rem;
}
#hero-profile > .gallery > img{
    object-fit: cover;
}
#hero-profile > article {
    padding-left: calc((100vw - var(--breakpoint-lg)) / 2.5);
    padding-right: calc((100vw - var(--breakpoint-lg)) / 1.5);
}
#hero-profile > article > ul{
    list-style: none;
    margin-bottom: 0.5rem;
}
#hero-profile > article > ul > li{
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}
#hero-profile > article > ul > li img.icon{
    height: 2rem;
    width: 2rem;
}
#hero-profile > article > ul > li span{
    font-weight: 600;
}
#hero-profile > article > p:last-of-type{
    padding-top: 0.5rem;
}
#hero-profile > article .actions > a{
    font-weight: 500;
}
#hero-profile > article .actions > a:first-of-type{
    background: var(--color-primary);
    color: var(--color-primary-invert);
}
/* about */
#about{
    padding-left: calc((100vw - var(--breakpoint-lg)) / 2.5);
    padding-right: calc((100vw - var(--breakpoint-lg)) / 1.5);
}
#about > figure figcaption{
    font-size: var(--font-size-xs);
}
@media screen and (max-width : 650px){
    #hero-profile > article .actions{
        padding-left: 0.5rem;
    }
    #about > figure > .gallery{
        gap: 0.5rem;
    }
    #about > figure > .gallery > img{
        width: 100%;
    }
}
@media screen and (min-width : 651px){
    #about {
        display: grid;
        grid-template-columns: 2fr 3fr;
        gap: 0.5rem;
    }
    #about > figure,
    #about > figure .gallery {
        border-radius: 1rem;
        text-align: center;
    }
    #about a.cta{
        width: max-content;
        border-radius: 1rem;
        border: 1px solid var(--color-border);
    }
}
/* advantage */
#advantage{
    padding-left: calc((100vw - var(--breakpoint-lg)) / 2.5);
    padding-right: calc((100vw - var(--breakpoint-lg)) / 1.5);
}
#advantage .grid > div {
    display: grid;
    grid-template-columns: max-content 1fr;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    gap: none;
    padding-right: 0.5rem;
}
#advantage .grid > div > img{
    width: 3.5rem;
    grid-column: 1/2;
    grid-row: 1/2;
    object-fit: contain;
    height: 100%;
    transform: scale(0.8);
}
#advantage .grid > div > p{
    grid-column: 1 / 3;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}
#advantage .grid > div > h3{
    line-height: 0.9;
    padding-top: 0.5rem;
}
#advantage .grid > div > h3,
#advantage .grid > div > p{
    padding-left: 0.5rem;
}
/* product */
#product > h2,
#product > p{
    padding-left: 0.5rem;
    max-width: calc(100% - 1rem);
}
#product .tile-vary > div{
    background: var(--color-surface);
}
#product a#load-more-btn{
    display: flex;
    align-items: center;
    width: max-content;
    color: var(--color-primary-invert);
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.5rem;
    height: var(--button-size);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-top: 1rem;
    background: var(--color-primary);
}
#product > p:last-of-type{
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-align: right;
    padding-top: 0.5rem;
}
@media screen and (min-width : 651px){
    #product .tile-vary > div{
        display: flex;
        flex-direction: column;
    }
    #product .tile-vary > div img{
        height: 100%;
        object-fit: cover;
    }
    #product .tile-vary > div h3{
        display: flex;
        height: max-content;
    }
}
@media screen and (max-width : 650px){
    #product .tile-vary > div img{
        aspect-ratio: 1/1;
        width: 100%;
        object-fit: cover;
    }
    #product .tile-vary > div h3{
        line-height: 0.9;
        font-size: var(--font-size);
        display: -webkit-box;
        padding-bottom: 0;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow-y: hidden;
        text-overflow: ellipsis;
    }
}
/* price */
#price{
    padding-left: calc((100vw - var(--breakpoint-lg)) / 2.5);
    padding-right: calc((100vw - var(--breakpoint-lg)) / 1.5);
}
#price > p:last-of-type{
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    padding-top: 0.5rem;
}
#price table > caption{
    font-weight: 600;
    padding-bottom: 0.5rem;
    font-size: var(--font-size-md);
}
#price table{
    border-collapse: collapse;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    min-width: var(--breakpoint-md);
}
#price table tr {
    border-bottom: 1px solid var(--color-border);
}
#price table tr span{
    display: flex;
    align-items: center;
    text-indent: 0.5rem;
    padding-right: 0.5rem;
    min-height: var(--button-size);
}
/* faq */
#faq{
    padding-left: calc((100vw - var(--breakpoint-lg)) / 2.5);
    padding-right: calc((100vw - var(--breakpoint-lg)) / 1.5);
}
#faq > p:last-of-type{
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-align: right;
}
#faq details{
    margin-bottom: 0.5rem;
}
#faq details summary{
    min-height: var(--button-size);
    display: flex;
    align-items: center;
    font-weight: 600;
    text-indent: 0.5rem;
    position: relative;
}
#faq details summary::after{
    content: "▾";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    font-size: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    transition: 0.5s;
    background-image: unset;
}
#faq details summary:hover::after{
    transform: translateY(-30%);
}
#faq details[open] summary::after{
    transform: translateY(-50%) scaleY(-1);
}
#faq details > div > p{
    padding-left: 0.5rem;
}
@media screen and (min-width:651px){
    #faq details{
        border-radius: 0.5rem;
    }
}
/* partner */
#partner{
    padding-left: calc((100vw - var(--breakpoint-lg)) / 2.5);
    padding-right: calc((100vw - var(--breakpoint-lg)) / 1.5);
}
#partner > .gallery{
    display: flex;
    align-items: center;
}
#partner > .gallery > figure {
    width: 15rem;
}
#partner > .gallery > figure > img{
    display: flex;
    object-fit: contain;
    min-width: 15rem;
    height: 5rem;
    aspect-ratio: 3/1;
}
#partner > .gallery > figure > figcaption{
    font-size: var(--font-size-xs);
    text-align: center;
    color: var(--color-text-muted);
    text-transform: lowercase;
}
@media screen and (min-width:651px){
    #partner .gallery{
        border-radius: 1rem;
    }
    #partner figure {
        margin-right: 1rem;
        border-radius: 1rem;
    }
}
/* team */
#team{
    padding-left: calc((100vw - var(--breakpoint-lg)) / 2.5);
    padding-right: calc((100vw - var(--breakpoint-lg)) / 1.5);
}
#team .template {
    gap: 0.5rem 0.25rem;
}
#team .template > div dl{
    padding-left: 0.5rem;
    max-width: calc(100% - 1rem);
}
@media screen and (min-width : 651px){
    #team .template {
        display: grid;
        grid-template-columns: repeat(4 , 1fr);
    }
    #team .template > div img,
    #team .template > div{
        border-radius: 0.5rem;
    }
    #team .template > div:first-of-type{
        display: flex;
        grid-column: 1/5;
    }
    #team .template > div:first-of-type > img{
        width: max-content;
        max-height: 15rem;
        aspect-ratio: 1/1;
        object-fit: contain;
        margin-right: auto;
    }
}
@media screen and (max-width : 650px){
    #team .template {
        display: grid;
        grid-template-columns: repeat(2 , 1fr);
    }
    #team .template > div:first-of-type{
        grid-column: 1/3;
    }
}
/* testimonials */
#testimonial{
    padding-left: calc((100vw - var(--breakpoint-lg)) / 2.5);
    padding-right: calc((100vw - var(--breakpoint-lg)) / 1.5);
}
#testimonial > .carousel{
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
#testimonial > .carousel > div{
    display: flex;
    position: relative;
    scroll-snap-align: start;
}
#testimonial > .carousel > div blockquote{
    position: relative;
    font-size: var(--font-size-xs);
    z-index: 2;
}
#testimonial > .carousel > div blockquote::before{
    content: '"';
    position: absolute;
    z-index: 1;
    top: -0.25em;
    left: -0.5em;
    font-size: var(--font-size-3xl);
    opacity: 0.5;
}
#testimonial > .carousel > div > img{
    aspect-ratio: 1/1;
    object-fit: cover;
}
#testimonial > .carousel > div > article cite,
#testimonial > .carousel > div > article span{
    padding-left: 0.5rem;
}
#testimonial > .carousel > div > article .rate{
    font-size: var(--font-size-md);
}
@media screen and (min-width: 651px){
    #testimonial > .carousel > div {
        border-radius: 0.5rem;
        width: max-content;
        aspect-ratio: 4/1;
        height: max-content;
        min-width: 40rem;
    }
    #testimonial > .carousel > div > img{
        width: 15rem;
        height: unset;
        border-radius: 0.5rem;
    }
}
@media screen and (max-width : 650px){
    #testimonial > .carousel{
        padding-left: 1rem;
        scroll-padding-left: 1rem;
        padding-right: 1rem;
        scroll-padding-right: 1rem;
    }
    #testimonial > .carousel > div{
        min-width: 90vw;
        border-top-left-radius: 5rem;
        border-bottom-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
        border-top-right-radius: 1rem;
    }
    #testimonial > .carousel > div > img{
        width: 10rem;
        height: min-content;
        border-radius: 50%;
    }
}
/* portfolio */
#portfolio{
    padding-left: calc((100vw - var(--breakpoint-lg)) / 2.5);
    padding-right: calc((100vw - var(--breakpoint-lg)) / 1.5);
}
.slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
}
.slider > div{
    scroll-snap-align: start;
    aspect-ratio: 3/1;
    padding-bottom: 0.5rem;
}
.slider > div > img{
    width: 40rem;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.slider > div h3,
.slider > div span,
.slider > div p{
    padding-top: 0.5rem;
    padding-left: 0.5rem;
    max-width: calc(100% - 1rem);
}
.slider > div span{
    padding-right: 0.5rem;
}
.slider article{
    width: 100%;
}
.slider > div > img,
.slider > div{
    border-radius: 0.5rem;
}
@media screen and (min-width:651px){
    .slider > div{
        width: max-content;
        height: max-content;
        min-width: 40rem;
    }
    .slider > div .gallery img{
        aspect-ratio: 4/3;
        border-radius: 0.5rem;
    }
}
@media screen and (max-width:650px){
    .slider {
        padding-left: 1rem;
        scroll-padding-left: 1rem;
        padding-right: 1rem;
        scroll-padding-right: 1rem;
    }
    .slider div {
        min-width: 80vw;
    }
    .slider div img{
        aspect-ratio: 4/3;
        object-fit: cover;
        border-radius: 0.5rem;
    }
} 
/* contact */
#contact{
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 0.25rem 1rem;
}
#contact > h1,
#contact > h2,
#contact > p{
    padding-left: calc((100vw - var(--breakpoint-lg)) / 2.5);
    max-width: var(--breakpoint-lg);
    grid-column: 1/-1;
    width: calc(100% - 1rem);
}
#contact > nav.links{
    padding-left: calc((100vw - var(--breakpoint-lg)) / 2.5);
    max-width: var(--breakpoint-lg);    
    grid-column: 1/-1;
    grid-row: 3/4;
    display: flex;
    flex-wrap: wrap;
}
#contact > nav.links > a{
    height: max-content;
}
#contact > iframe{
    width: 100%;
    height: 100%;
    border-bottom-right-radius: 1rem;
    border-top-right-radius: 1rem;
    border: 1px solid var(--color-border);
}
#contact > form {
    grid-column: 2/3;
    grid-row: 4/5;
}
@media screen and (min-width: 651px){
    #contact form > button{
        display: flex;
        align-items: center;
    }
}
@media screen and (max-width:650px){
    #contact > h2,
    #contact > p,
    #contact > nav.links{
        padding-left: 0.5rem;
        width: calc(100%-1rem);
    }
    #contact {
        display: block;
    }
    #contact form,
    #contact form .group,
    #contact form input,
    #contact form textarea{
        width: 100%;
        padding-left: unset !important;
        max-width: unset;
    }
    #contact form textarea{
        min-height: 8rem !important;
        max-height: 20rem !important;
    }
    #contact iframe{
        border-radius: unset;
        border: unset;
    }
}
/* form */
form .group-text,
form .group{
    display: flex;
    position: relative;
    margin-top: 1rem;
}
form .group-text > label,
form .group > label{
    position: absolute;
    left: 0.5rem;
    font-size: var(--font-size-xs);
    top: -1.1em;
}
form .group-text textarea,
form .group input{
    width: 100%;
}
form .group-text textarea{
    height: 4.5rem;
    padding-top: 0.5rem;
}
form .group-checkbox{
}
form .group-checkbox > div{
    display: flex;
    align-items: center;
}
form .group-checkbox > div{
    display: flex;
    align-items: center;
}
form .group-checkbox > div > label{
    display: flex;
    align-items: center;
    line-height: 1;
    min-height: 2em;
    font-size: var(--font-size-xs);
}
form .group-checkbox > div > label a{
    color:var(--color-warning);
}
form .group-checkbox > div > label::before{
    content: "";
    width: 0.75em;
    height: 0.75em;
    margin-right: 0.5em;
    border-radius: 0.75em;
    border: 1px solid var(--color-text);
    aspect-ratio: 1/1;
    margin-left: 0.5em;
    margin-top: 1em;
    margin-bottom: 1em;
}
form .group-checkbox > div > input{
    display: none;
}
form .group-checkbox > div > input:checked + label::before{
    content: "";
    border: 2px solid var(--color-background);
    box-shadow: 0 0 0 1px var(--color-text);
    background: var(--color-text);
}
form button:last-of-type{
    background: var(--color-primary);
    color: var(--color-primary-invert);
    font-weight: 500;
    margin: 0.25rem 0.5rem;
}
@media screen and (min-width : 651px){
    form input,
    form textarea{
        border-radius: 0.5rem;
    }
}
/* other */
#other{
    padding-left: calc((100vw - var(--breakpoint-lg)) / 2.5);
    padding-right: calc((100vw - var(--breakpoint-lg)) / 1.5);
}
/* filter */
section#filter h3{
    width: 100%;
    margin-top: 0.5em;
}
section#filter form {
    width: 100%;
    max-width: unset;
}
section#filter .filter-category{
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
section#filter .filter-category label{
    min-height: var(--button-size);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 0.5rem;
}
section#filter .filter-category input:checked + label{
    background:var(--color-primary);
    color: var(--color-primary-invert);
}
section#filter .filter-category label:hover{
    color:var(--color-primary);
    cursor: pointer;
}
@media screen and (min-width : 651px) {
    section#filter{
        margin-top: 2rem;
    }
}
@media screen and (max-width : 650px) {
    section#filter .filter-price > div{
        display: flex;
        flex-direction: column;
    }
    section#filter .filter-price > div input{
        width: 100%;
    }
}
/* hero.product */
section#hero.product{
    margin-top: 2rem;
}
section#hero.product img{
    object-fit: contain;
}
section#hero.product a.cta-button{
    min-height: var(--button-size);
    background: var(--color-primary);
    color: var(--color-primary-invert);
    width: max-content;
    margin-bottom: 1rem;
    font-weight: 500;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    display: flex;
    align-items: center;
}
/* recommendations */
section#recommendations a:any-link{
    color: var(--color-text);
}
section#recommendations div{
    border-radius: 0.5rem;
    padding-bottom: 0.5rem;
}
section#recommendations div img{
    border-radius: 0.5rem;
    aspect-ratio: 4/3;
    width: 100%;
}
section#recommendations a:any-link h3{
    font-size: var(--font-size-md);
}
section#recommendations a:any-link h3,
section#recommendations a:any-link p,
section#recommendations a:any-link span{
    padding-left: 0.5rem;
}
@media screen and (min-width : 651px){
    section#recommendations{
        margin-top: 2rem;
        padding-left: calc((100vw - var(--breakpoint-lg)) / 2.5);
        max-width: calc(100vw - ((100vw - var(--breakpoint-lg)) / 2.5));
    }
}
@media screen and (max-width : 650px){
    section#recommendations div.grid{
        grid-template-columns: repeat(2,1fr);
        padding-left: 0.5rem;
        width: calc(100% - 1rem);
    }
}
/* privacy */
section#privacy{
    max-width: var(--breakpoint-md);
}
section#privacy h2{
    margin-top: 0.25em;
    margin-bottom: 0.5em;
}
section#privacy ul{
    list-style: circle;
    padding-left: 1.25rem;
}
/* breadcrumb */
nav.breadcrumb{
    display: flex;
    align-items: center;
    overflow-x: auto;
    padding-left: 1.25em;
    min-height: 1.5em;
}
nav.breadcrumb a:any-link{
    color: var(--color-text);
}
nav.breadcrumb a:any-link::after{
    content: "/";
    padding-left: 0.25em;
    padding-right: 0.25em;
}
nav.breadcrumb a:any-link > span{
    font-weight: 600;
}
/* sitemap */
section#sitemap{
    max-width: var(--breakpoint-md);
}
section#sitemap nav.list > a{
    width: 100%;
}
/* media */
section#media{
    max-width: var(--breakpoint-lg);
}