/* Fonts */
@font-face {
    font-family: "hiragino";
    font-weight: 600;
    src: url("/css/hiragino-mincho-pron/hiragino-mincho-ProN.otf") format("opentype");
}

body {
    background: url("/images/index_bg.png") no-repeat center center fixed;
    background-size: cover;
    color: #9d8367;
    overflow-x: hidden;
    padding-bottom: 100px; /* Adjust this value as needed */
}

body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

body::before {
    background-image: url("/images/ocs/glass.png");
    z-index: -1; /* Behind everything */
}

body::after {
    background-image: url("/images/ocs/curtain-frame.png");
}

.title {
    font-family: "hiragino", "Times New Roman";
    text-align: center;
}

.title a {
    text-decoration: none;
    color: inherit;
}

.title a:hover {
    letter-spacing: 5px;
    transition: letter-spacing 0.5s ease-in-out;
    text-decoration: none;
}

/* GALLERY */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: url("https://i.imgur.com/HjI49SC.gif"), auto;
    border: 5px solid #9d8367;
}

.overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(184, 153, 140, 0.75);
    justify-content: center;
    align-items: center;
}

#overlayImg {
    max-width: 100%;
    max-height: 80vh;
    border: 5px solid #9d8367;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 90%;
}

#overlayCaption {
    font-family: "hiragino", "Times New Roman";
    color: white;
    font-size: 16px;
    text-align: left;
}

* {
    box-sizing: border-box;
}

/* Image Styles */
.hover-image,
.return-image {
    width: 150px;
    height: 150px;
    display: inline-block;
    background-size: cover;
}

/* Background Images */
.hover-image {
    background-image: url("/images/home.png");
}

.hover-image:hover {
    background-image: url("/images/home-hover.png");
}

.return-image {
    background-image: url("/images/return-home.png");
}

.return-image:hover {
    background-image: url("/images/return-hover.png");
}

/* Mobile Styles */
@media only screen and (max-width: 1400px) {
    header {
        margin-top: 65px;
    }
}
@media only screen and (max-width: 1024px) {
    header {
        margin-top: 90px;
    }

    /* Background Images */
    .hover-image {
        background-image: url("/images/home-hover.png");
    }

    .return-image {
        background-image: url("/images/return-hover.png");
    }

    .container {
        flex-direction: column;
        align-items: center;
    }

    /* GALLERY */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}