@charset "utf-8";

.title{
    font-size: 3.6rem;
    line-height: 1.3;
    color: var(--text-navy);
    margin: 0 auto;
    max-width: 1260px;
}

.title::after{
    content: '';
    display: block;
    background-color: rgba(15, 27, 53, 0.1);
    width: 100%;
    height: 2px;
    margin-top: 16px;
}

.collection__item::before{
    content: '';
    display: block;
    background-color: rgba(15, 27, 53, 0.1);
    width: 100%;
    height: 2px;
    margin: 32px 0;
}

.collection__item:first-of-type::before{
    display: none;
}

.article__header{
    padding: 48px var(--padding-body) 24px;
    background-color: var(--text-white);
}

.section{
    padding: 56px var(--padding-body) 80px;
    background-color: var(--text-white);
}

.collection{
    margin: 0 auto;
    max-width: 1260px;
}

.collection__item{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.collection-title{
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-navy);
    line-height: 1.3;
}

.collection-subtitle{
    font-family: 'Montserrat';
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-navy);
    margin-top: 24px;
    line-height: 1.3;
}

.collection-subtitle--red{
    color: var(--text-red);
}

.collection-body{
    font-family: 'Montserrat';
    font-size: 1.4rem;
    margin-top: 12px;
    display: inline-block;
    width: fit-content;
}

.collection__img{
    margin: 32px auto 0;
    display: block;
    width: 65%;
}

.arrow-red{
    width: 2.4rem;
    height: 2.4rem;
    margin-right: 8px;
}


.section--atelier{
    background-color: var(--background-beige);
}

.atelier-title{
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-navy);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: center;
    max-width: 1260px;
    margin: 20px auto;
}

@media screen and (min-width: 769px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1025px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* gallery images */
.gallery__item{
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.gallery__button {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
}

.gallery__button:focus-visible {
    outline: 2px solid var(--text-red);
    outline-offset: 4px;
}

.gallery-modal {
    box-sizing: border-box;
    width: fit-content;
    max-width: 92vw;
    max-height: 90dvh;
    padding: 24px;
    border: none;
    background-color: var(--text-white);
    overflow: auto;
}

.gallery-modal::backdrop {
    background-color: rgba(15, 27, 53, 0.8);
}

.gallery-modal__image {
    display: block;
    max-width: 100%;
    max-height: calc(90dvh - 48px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.gallery-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--text-white);
    color: var(--text-navy);
    border: none;
    border-radius: 50%;
    text-align: center;
    width: 32px;
    height: 32px;
    font-size: 2.4rem;
    cursor: pointer;
    z-index: 1;
}

#loadMore{
    cursor: pointer;
    display: block;
    font-weight: 700;
    font-family: 'Montserrat';
    color: var(--text-gray);
    margin: 0 auto;
    padding: 16px 8px;
    width: 270px;
    align-items: center;
    border: solid 1px var(--text-navy);
    text-align: center;
}

#loadMore:hover{
    background-color: rgba(15, 27, 53, 0.2);
}

.order--white{
    background-color: #ffffff;
    margin-top: 0;
}

.order__itm--white{
    color: var(--text-gray);
    text-align: center;
}

.order__itm--white:first-of-type{
    font-weight: 700;
    font-style: normal;
    margin-bottom: 24px;
}

@media screen and (min-width: 769px){
    .title{
        font-size: 4.8rem;
    }
    
    .section{
        padding: 16px 5.5% 96px;
    }
    
    .collection{
        margin: 0 auto;
        max-width: 1260px;
    }
    
    .collection__img{
        max-width: 400px;
        margin-top: 0;
    }
    
    .collection-title{
        margin-bottom: 64px;
    }
    
    .collection-subtitle{
        font-size: 2rem;
        margin-top: 0;
        margin: 32px 0 16px;
    }
    
    .collection-subtitle:first-child{
        margin-top: 0;
    }
    
    .collection-body{
        font-size: 1.6rem;
        margin-top: 14px;
    }
    
    .SPbr{
        display: none;
    }
    
    .collection-group{
        display: flex;
        justify-content: center;
        gap: 5.5%;
        align-items: start;
    }
    
    .collection-group--2{
        flex-direction: row-reverse;
    }
    
    .collection-text{
        max-width: 640px;
    }
    
    .care-dialog__content {
        padding: 48px 24px 32px;
    }

    .collection__item::before{
        margin: 64px 0;
    }

    .atelier-title{
        font-size: 3.2rem;
    }

    .section--atelier{
        padding: 96px 5.5% 120px;
    }
    
    .gallery{
        margin: 32px auto 56px;
    }

    #loadMore{
        font-size: 1.3rem;
    }
    
    .order--white{
        display: block;
        background-color: transparent;
        padding: 120px 5.5%;
        max-width: 720px;
        margin: 0 auto;
    }
    
    .order__itm--white{
        font-size: 1.8rem;
    }
    
    .order__itm--white:last-of-type{
        font-size: 1.4rem;
        margin-top: 8px;
    }
    
    .btn{
        background-color: transparent;
        margin-top: 32px;
    }

}

/* modal */

.care-trigger {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.care-trigger:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.care-dialog {
    width: 90%;
    max-width: 680px;
    max-height: 85dvh;
    padding: 0;
    border: none;
    border-radius: 8px;
    background-color: var(--text-white);
    color: var(--text-navy);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.care-dialog::backdrop {
    background-color: rgba(15, 27, 53, 0.8);
}

.care-dialog__content {
    position: relative;
    padding: 48px;
}

.care-dialog__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-navy);
    font-size: 3rem;
    cursor: pointer;
}

/* scale motion reveal */
.gallery__item {
    opacity: 0;
    transform: scale(0.7);
    transition: 0.6s ease;
}

.gallery__item.show {
    opacity: 1;
    transform: scale(1);
    transition: 0.6s ease;
}
