@font-face {
    font-family: CASaygon;
    src: url('fonts/CASaygon-Bold.woff2') format('woff2'),
        url('fonts/CASaygon-Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: LyonText;
    src: url('fonts/LyonText-RegularNo2.woff2') format('woff2'),
        url('fonts/LyonText-RegularNo2.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    background: black;
    color: white;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.ss01 {
    font-feature-settings: "ss01";
}

.anim-text {
    --index: 0;
    animation: anim-text 1s ease-in-out forwards;
    animation-delay: calc(0.1s * (var(--length) - (var(--index) + 1)));
    display: inline-block;
    opacity: 0;
}

@keyframes anim-text {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0px); }
}

.anim-bg {
    animation: anim-bg 2s ease-in-out forwards;
}

@keyframes anim-bg {
    from { opacity: 0; }
    to { opacity: 0.7; }
}

.anim-fade {
    opacity: 0;
    animation: anim-fade 2s ease-in-out forwards;
}

.anim-delay {
    animation-delay: 1s;
}

@keyframes anim-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.header {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    z-index: 3;
}

.header h1 {
    color: #FFED00;
    font-size: clamp(16px, 3vw, 36px);
    font-family: CASaygon, sans-serif;
    line-height: 1;
    margin: 0 4vw 0 0;
    font-weight: 400;
}

.header h2 {
    color: #FFED00;
    font-size: clamp(16px, 3vw, 36px);
    font-family: LyonText, serif;
    line-height: 1;
    margin: 0;
    font-weight: 400;
}

.footer {
    width: calc(100vw - 48px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
    padding: 24px;
}

.footer a {
    color: #FFED00;
    font-size: 14px;
    text-decoration: none;
    font-family: CASaygon, sans-serif;
    transition: transform 0.3s ease-in-out;
}

.logo {
    position: absolute;
    width: 48px;
    height: auto;
    top: 24px;
    right: 24px;
    z-index: 3;
}

.image-grid {
    column-count: 2;
    column-gap: 12px;
    max-width: 1024px;
    margin: 48px auto;
    width: 100%;
    position: relative;
}

.image-grid .load-more {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(rgba(0,0,0,0), black 85%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.image-grid .load-more button {
    border: none;
    background: transparent;
    padding: 48px;
    margin-bottom: 36px;
    color: #FFED00;
    font-family: CASaygon, sans-serif;
    font-size: clamp(16px, 1.5vw, 18px);
    transition: transform 0.3s ease-in-out;
    pointer-events: auto;
}

.image-grid .load-more.hide {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.image-grid .grid-item {
    margin-bottom: 12px;
    cursor: pointer;
}

.image-grid .grid-item[data-load="false"] {
    display: none;
}

.image-grid .grid-item[data-load="true"] {
    display: block;
}

.image-grid img {
    height: auto;
    max-width: 100%;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    display: block;
}

.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
}

.image-lightbox.show {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease-in-out;
}

.image-lightbox .lightbox-item {
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 5;
    transform: translateY(20px);
}

.image-lightbox .lightbox-item.show {
    visibility: visible;
    transform: translateY(0px);
    transition: transform 0.3s ease-in-out;
}

.image-lightbox .lightbox-item img {
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
}

.image-lightbox .close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #FFED00;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transform: rotate(45deg);
    border: none;
    z-index: 6;
}

.image-lightbox .close:before {
    content: '';
    width: 50%;
    height: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: black;
}

.image-lightbox .close:after {
    content: '';
    height: 50%;
    width: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: black;
}

.index-page .container {
    z-index: 2;
}

.index-page .container p {
    color: #FFED00;
    font-size: clamp(24px, 6vw, 48px);
    font-family: LyonText, serif;
    line-height: 1.2;
    padding: 24px;
    max-width: 960px;
}

.index-page .container p a {
    text-decoration: underline;
    color: inherit;
    transition: transform 0.5s ease-in-out;
}

.index-page .swiper {
    z-index: 1;
    width: 100vw;
    height: 75vw;
    opacity: 0.7;
}

.index-page .swiper-slide img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.text-page {
    padding: 30vw 5vw;
}

.text-page .container {
    max-width: 720px;
    margin: 0 auto;
    z-index: 3;
}
.text-page .container h1 {
    color: #FFED00;
    font-size: clamp(36px, 8vw, 64px);
    font-family: CASaygon, sans-serif;
    margin-bottom: 48px;
}
.text-page .container p {
    color: white;
    font-size: clamp(16px, 2.5vw, 22px);
    font-family: LyonText, serif;
    line-height: 1.65;
}
.text-page .container small {
    color: white;
    font-size: clamp(12px, 1.5vw, 14px);
    font-family: LyonText, serif;
}

.text-page .container h2 {
    font-family: CASaygon, sans-serif;
    color: #FFED00;
}

.text-page .container h3 {
    font-family: CASaygon, sans-serif;
    color: #FFED00;
}

.text-page .container h4 {
    font-family: CASaygon, sans-serif;
    color: #FFED00;
}

.text-page ol li {
    font-size: clamp(14px, 2vw, 18px);
    font-family: LyonText, serif;
    margin-bottom: 12px;
}

.text-page figure.background-image {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
}

.text-page figure.background-image img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.text-page figure.background-image figcaption {
    position: absolute;
    bottom: 24px;
    left: 24px;
    opacity: 0.5;
    font-family: LyonText, serif;
}

.text-page .back-link {
    color: #FFED00;
    font-family: CASaygon, sans-serif;
    text-decoration: none;
    margin: 48px 0;
    display: inline-block;
    z-index: 3;
    transition: transform 0.3s ease-in-out;
}


@media only screen and (min-width: 767px) {
    .logo {
        width: 72px;
        top: 36px;
        right: 36px;
    }

    .header {
        top: 36px;
        left: 36px;
    }

    .footer {
        position: absolute;
        bottom: 0;
        left: 0;
        width: calc(100vw - 72px);
        padding: 36px;
    }

    .index-page .container {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100vw;
        min-height: 100vh;
        position: absolute;
        top: 0;
        left: 0;
    }

    .index-page .container p {
        padding: 5vw;
    }

    .index-page .swiper {
        width: 100vw;
        height: 100vh;
    }

    .text-page figure.background-image figcaption {
        position: absolute;
        bottom: 36px;
        left: 36px;
    }

    .text-page .container h1 {
        margin-bottom: 64px;
    }

    .image-grid {
        column-count: 3;
    }

    .image-lightbox .close {
        top: 36px;
        right: 36px;
        transition: transform 0.3s ease-in-out;
    }
}


@media only screen and (min-width: 1024px) {
    .logo {
        width: 96px;
    }

    .text-page {
        padding: 10vw 5vw;
    }

    .text-page .back-link {
        position: fixed;
        top: 48px;
        left: 48px;
        margin-top: 0;
    }

    .index-page .container p a:hover {
        transform: rotate(-1deg);
        display: inline-block;
    }

    .text-page .back-link:hover {
        transform: rotate(-8deg);
    }

    .footer a:hover {
        transform: rotate(-2deg);
    }

    .image-grid {
        margin: 120px auto 0 auto;
        column-count: 4;
    }

    .image-grid .load-more button:hover {
        transform: rotate(8deg);
    }

    .image-lightbox .close {
        top: 48px;
        right: 48px;
    }

    .image-lightbox .close:hover {
        transform: rotate(135deg);
    }
}