@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;

    user-select: none;
}

*:has(.fullscreen) {
    overflow: hidden;
}

body {
    background-color: #050505;

    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}

#backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;

    opacity: .5;
    filter: blur(20px);

    object-fit: cover;

    z-index: -1;
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;

    background-image: linear-gradient(to bottom, rgba(0, 0, 0, .5), transparent);

    z-index: 10;
}

#navbar * {
    transition: 0.3s ease;
}

#navbar #navbar-logo {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    cursor: pointer;
}

#navnar #navbar-logo:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

#navbar #navbar-logo:hover * {
    letter-spacing: 3px;
}

#navbar #navbar-logo h1, 
#navbar #navbar-logo h2 {
    margin: 0;
    padding: 0;

    color: white;
    text-transform: uppercase;
    font-weight: bold;

    text-align: center;
}

#navbar #navbar-logo h1 {
    font-size: 1.5rem;
}
#navbar #navbar-logo h2 {
    font-size: 0.75rem;
}

#titlecontainer {
    position: relative;

    width: 100%;
    aspect-ratio: 3 / 1;
    box-shadow: 0 0 20px rgba(0, 0, 0, 1);
}

#titlecontainer img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

#titlecontainer h1 {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    text-align: center;

    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: bold;
}

#imageswrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;

    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;

    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, .5);

    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;

    margin-bottom: 100px;
}

.imagecontainer {
    position: relative;

    flex: 1 1 250px;
    min-width: 150px;
    max-width: 300px;

    aspect-ratio: 3 / 2;

    border-radius: 10px;
    overflow: hidden;

    box-shadow: 0 0 10px rgba(0, 0, 0, .5);

    transition: transform 0.15s ease;
}

.imagecontainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imagecontainer:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.imagecontainer .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1rem;

    opacity: 0;
    transition: opacity 0.3s ease;

    cursor: pointer;
}

.imagecontainer:hover .overlay {
    opacity: 1;
    transition: opacity 0.3s ease;
}

footer {
    width: 100%;

    text-align: center;
    padding: 20px;

    color: white;

    font-size: .75rem;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#overlay-content {
    position: relative;
    width: 90vw;
    height: 90vh;

    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#overlay-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

#overlay.fullscreen #overlay-content {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
}

#overlay.fullscreen {
    background-color: rgba(0, 0, 0, 1);
}

#overlay-navigation-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;

    z-index: 2;
}

#overlay-navigation-wrapper .overlay-navigation-button {
    width: 50%;
    height: 100%;

    cursor: pointer;
}

#image-metadata {
    position: absolute;
    bottom: 0;
    left: 0;
    color: white;
    z-index: 2;

    margin: 20px;
}

#viewer-controls-wrapper {
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

#viewer-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
    
    background-color: rgb(45, 45, 45);
    z-index: 3;

    border-radius: 2rem;
    padding: .5rem 1rem;
}

.viewer-button {
    padding: 1rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;

    cursor: pointer;
}

.viewer-button object {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    cursor: pointer;

    pointer-events: none;
}

.viewer-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.viewer-button.active-button {
    background-color: rgb(18, 18, 18);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}