@import url('https://fonts.googleapis.com/css2?family=Teko:wght@300..700&display=swap');
@import url('https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
@import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&display=swap');

body {
    overflow: hidden;
    font-family: 'Roboto', serif;
    background: #000000;
    background: linear-gradient(105.2deg, rgb(255, 78, 78) 11.2%, rgb(253, 176, 71) 117.9%);
    background: #ff6f3c;
    margin: 0;
    background: url('Misc/bg.jpg') no-repeat center center fixed;
    background-size: cover;
}




.carousel {
    position: relative;
    z-index: 1;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
}

.carousel-item {
    --items: 10;
    --width: clamp(150px, 30vw, 300px);
    --height: clamp(200px, 40vw, 400px);
    --x: calc(var(--active) * 800%);
    --y: calc(var(--active) * 200%);
    --rot: calc(var(--active) * 120deg);
    --opacity: calc(var(--zIndex) / var(--items) * 3 - 2);
    overflow: hidden;
    position: absolute;
    z-index: var(--zIndex);
    width: var(--width);
    height: var(--height);
    margin: calc(var(--height) * -0.5) 0 0 calc(var(--width) * -0.5);
    border-radius: 10px;
    top: 50%;
    left: 50%;
    user-select: none;
    transform-origin: 0% 100%;
    box-shadow: 0 10px 50px 10px rgba(0, 0, 0, .5);
    background: black;
    pointer-events: all;
    transform: translate(var(--x), var(--y)) rotate(var(--rot));
    transition: transform .8s cubic-bezier(0, 0.02, 0, 1);

    .carousel-box {
        position: absolute;
        z-index: 1;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transition: opacity .8s cubic-bezier(0, 0.02, 0, 1);
        opacity: var(--opacity);
        font-family: 'Orelo-sw-db', serif;

        &:before {
            content: '';
            position: absolute;
            z-index: 1;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .5));
        }
    }

    .title {
        position: absolute;
        z-index: 1;
        color: #fff;
        bottom: 20px;
        left: 20px;
        transition: opacity .8s cubic-bezier(0, 0.02, 0, 1);
        font-size: clamp(20px, 3vw, 30px);
        text-shadow: 0 4px 4px rgba(0, 0, 0, .1);
    }

    .num {
        position: absolute;
        z-index: 1;
        color: #fff;
        top: 10px;
        left: 20px;
        transition: opacity .8s cubic-bezier(0, 0.02, 0, 1);
        font-size: clamp(20px, 10vw, 80px);
    }

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }



}

.view-info {
    position: absolute;
    z-index: 1;
    color: #fff;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.8s cubic-bezier(0, 0.02, 0, 1);
    font-size: clamp(16px, 2.5vw, 24px);
    background-color: rgba(24, 235, 242, 0.596);
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    cursor: pointer;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    font-family: "Architects Daughter", cursive;
}


.view-info:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

.close-info {
    z-index: 1;
    color: #fff;
    transition: opacity 0.8s cubic-bezier(0, 0.02, 0, 1);
    font-size: clamp(16px, 2.5vw, 24px);
    background-color: rgba(253, 24, 24, 0.558);
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    cursor: pointer;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    width: 100%;
    font-family: "Architects Daughter", cursive;
}

.close-info:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.layout {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;

    &:before {
        content: '';
        position: absolute;
        z-index: 1;
        top: 0;
        left: 90px;
        width: 10px;
        height: 100%;
        border: 1px solid #fff;
        border-top: none;
        border-bottom: none;
        opacity: .15;
    }

    .box {
        position: absolute;
        bottom: 0;
        left: 30px;
        color: #fff;
        transform-origin: 0% 10%;
        transform: rotate(-90deg);
        font-size: 9px;
        line-height: 1.4;
        text-transform: uppercase;
        opacity: .4;
    }
}



@media (min-width: 360px) and (min-height: 800px) and (orientation: portrait) {
    .carousel-item {
        --width: 60vw;
        --height: 40vh;
        --width: 400px;
        --height: 600px;
    }
}

/* @media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .carousel-item {
        --width: 25vw;
        --height: 25vh;
    }
} */


/* Root Variables */
:root {
    --color-primary: #ffdd40;
    --color-secondary: #283242;
    --color-tertiary: #131417;
}

/* Gallery Wrap */
.gallery-wrap {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 30vh;
    /* border-radius: 20px; */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.0);
    overflow: hidden;
}

/* Gallery Items */
.item {
    flex: 1;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    mix-blend-mode: screen;
    filter: grayscale(1) saturate(0) brightness(90%) contrast(150%);
    transition: flex 0.4s cubic-bezier(.32, .79, .38, .99), filter 0.5s cubic-bezier(0.86, 0.0, 0.07, 1.0);
    position: relative;
}

.item:hover {
    flex: 7;
    filter: grayscale(0) saturate(1.3) blur(0px);
}

.item:hover .caption {
    opacity: 1;
}

.item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle closest-side, #333 1px, transparent 1px);
    background-size: 8px 8px;
    filter: contrast(500%);
    transition: opacity 0.2s cubic-bezier(0.86, 0.0, 0.07, 1.0);
    opacity: 0.3;
    pointer-events: none;
}

.item:hover::before {
    opacity: 0;
}

/* Captions */
.caption {
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0;
    margin: 1rem;
    padding: 1rem;
    color: #eee;
    background-color: rgba(0, 0, 0, 0.5);
    border: solid 1px rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4.0px);
    transition: opacity 0.2s ease, backdrop-filter 0.3s cubic-bezier(0.86, 0.0, 0.07, 1.0);
    opacity: 0;
}

.caption h1 {
    color: rgba(65, 187, 245, 1);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.caption p {
    font-size: 1rem;
    line-height: 1.5;
}

.caption:hover {
    backdrop-filter: blur(0px);
}

/* Adjust for Smaller Screens */
@media (max-width: 768px) {
    .gallery-wrap {
        flex-direction: column;
        height: auto;
    }

    .item {
        height: 50vh;
    }

    .item:hover {
        flex: 1;
    }
}

/* Modal Links */
.modal-links {
    margin-top: 20px;
}

.modal-link {
    display: inline-block;
    margin-right: 10px;
    color: var(--color-primary);
    text-decoration: none;
}

.modal-link:hover {
    text-decoration: underline;
}

.caption:empty {
    display: none;
    /* Hide caption if it's empty */
}