@charset 'UTF-8';

/*
VARIABLES
================================================ */
:root {
    --light-green: #d5edeb;
    --green: #63dbd0;
    --brown: #403632;
    --light-grey: #eee;
    --white: #fff;
    --oswald-font: 'Oswald', sans-serif;
    --primary-blue: #2563eb;
}

/*
GENERAL STYLING
================================================ */
body {
    color: var(--brown);
    background: url('/static/img/bg-shadow02.jpg') no-repeat right top / cover fixed;
    text-align: center;
}

/*
COMMON
================================================ */
p {
    line-height: 1.7;
    font-size: 2rem;
}
img {
    max-width: 100%;
}
.title {
    font-family: var(--oswald-font);
    font-size: min(10vw, 4rem);
    margin-bottom: 2rem;
}
.title2 {
    font-family: var(--oswald-font);
    font-size: min(10vw, 4rem);
    margin-bottom: 2rem;
}
.btn-mana {
    color: var(--white);
    background: var(--brown);
    border: 1px solid var(--brown);
    text-decoration: none;
    padding: 1rem;
    display: inline-block;
    margin: 2rem 0;
    transition: .4s;
}

/*
LAYOUT
================================================ */
.wrapper {
    max-width: 38rem;
    margin: auto;
    padding: 0 1rem;
}

/*
HERO
================================================ */
.hero {
    height: 100vh;
    position: relative;
}
.hero::after {
    content: '';
    width: 50%;
    height: 100vh;
    background: url('/static/img/bg_hero2_96dp1.jpg') no-repeat center / cover;
    position: absolute;
    inset: 0;
}
.hero .title {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: 2;
    width: 100%;
    font-size: max(12vw, 3rem);
    line-height: 1.2;
}

/*
CONCEPT
================================================ */
.concept {
    margin: 8rem 0;
    background-image: linear-gradient(
        to right,
        var(--light-grey) 0%,
        var(--light-grey) 100%
    );
}

.concept p {
    text-align: left;
    margin-bottom: 2rem;
}

.concept img {
    margin: 2rem 0;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/*
GALLERY
================================================ */
h2.title2 {
    background: #0bd;
    color: #fff;
    display: inline-block;
    padding: 3rem 1.5rem;
    border-radius: 50%;
    font-size: min(8vw, 3rem);
}
.gallery {
    display: flex;
    flex-direction: column-reverse;
}
/* 메뉴의 /#gallery 로 왔을 때 고정 헤더에 가리지 않게 (S5) */
#gallery {
    scroll-margin-top: var(--pm25-header-h);
}
.gallery-image {
    width: min(100%, calc(38rem - 2rem));
    margin: auto;
    position: relative;
}
.gallery-image img {
    aspect-ratio: 4/3;
    object-fit: contain;
    width: 100%;
}
.gallery-thumbnails {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, 1fr);
    list-style: none;
    margin: 1rem 0;
}
.gallery-thumbnails img {
    aspect-ratio: 4/3;
    object-fit: cover;
    cursor: pointer;
}

/* GALLERY ADMIN */
.gallery-thumb {
    position: relative;
}
.btn-delete-gallery {
    position: absolute;
    top: .2rem;
    right: .2rem;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: none;
}
.gallery-thumb:hover .btn-delete-gallery {
    display: block;
}
.gallery-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--brown);
    border-radius: .5rem;
    aspect-ratio: 4/3;
    cursor: pointer;
    opacity: 1 !important;
}
.gallery-add-label {
    font-size: 3rem;
    color: var(--brown);
    cursor: pointer;
    line-height: 1;
}

/*
FEATURES (pm25lab 전용)
================================================ */
.features {
    background: url('/static/img/bg_shadow_96dpi.jpg') no-repeat center top / cover;
    margin-top: 16rem;
    position: relative;
    min-height: 40rem;  /* 고정 높이 대신 — 내용이 넘쳐도 아래 푸터를 덮지 않게 (S5 C2) */
}
.features-content {
    background: var(--white);
    padding: 3rem;
    position: relative;  /* 절대 위치를 풀어 절이 내용만큼 늘어난다 — 음수 margin-bottom 은 쓰지 않는다 (S5 C2) */
    top: -8rem;
    width: 90vw;
    left: 0;
    right: 0;
}
.features h3 {
    margin: 1rem 0;
    padding-top: 2rem;
    font-weight: normal;
    border-top: 1px solid var(--light-grey);
}
.features a.btn-mana {
    margin: 1rem .5rem;
}

/*
DESKTOP SIZE
================================================ */
@media(min-width: 800px) {
/* COMMON */
    .title {
        margin-bottom: 3rem;
    }
    .btn-mana:hover {
        color: var(--brown);
        background: var(--light-green);
    }

/* CONCEPT*/
    .concept {
        display: flex;
        margin: 10rem 0;
    }
    .concept p {
        text-align-last: left;
    }
    .concept img {
        margin: -6rem 0;
        max-width: 38rem;
    }

/* GALLERY */
    .gallery {
        flex-direction: row;
        justify-content: center;
    }
    .gallery-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50vw;
        height: 100vh;
        margin: 0;
    }
    .gallery-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    .gallery-content {
        width: 30vw;
    }
    .gallery-thumbnails {
        gap: 2vw;
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-thumbnails img:hover {
        box-shadow: 0 0 1rem rgba(0,0,0,.4);
        transition: .4s;
    }

/* FEATURES */
    .features {
        margin-top: 20rem;
        min-height: 50rem;
    }
}
