@import url(https://db.onlinewebfonts.com/c/eb01fc4d263f241198707d09080c865c?family=Times+NR+Seven+MT+Std);

*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    box-sizing: border-box;
}

html, body{
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-size: 1.2rem;
}


/* MEDIA GALLERY + CAPTION + COUNTER */

#counter-container {
    position: fixed;
    top: .3rem;
    left: .3rem;

    display: flex;
    flex-direction: row;
    gap: 9.6rem;

    color: black;

    z-index: 2;
}

#media-counter{
    width: 100px;
}


#media-counter, #scroll-counter, #media-caption {
    margin-bottom: 5px;
    font-family: "Times NR Seven MT Std";
    font-size: 1.4rem;
}

#media-caption {
    overflow: hidden;
    max-width: 900px;
    word-wrap: break-word;
}

.media-container {
    background-color: none;
    display: flex;
    flex-direction: column;
}

.media-wrapper {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-container img {
    max-width: 100%;
    max-height: 100vh;
    object-fit: cover;
}

.media-container video{
    max-width: 100%;
    max-height: 100vh;
    object-fit: cover;
}


.fade-in {
    opacity: 0;
    transition: opacity .3s ease-in;
}

.fade-in.show {
    opacity: 1;
}

.fade-out {
    opacity: 1;
    transition: opacity .3s ease-out;
}

.fade-out.hide {
    opacity: 0;
}



/* PAGE INFO */

#page-info{
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

#page-info #page-description{
    font-family: "Times NR Seven MT Std";

    text-indent: 6rem;
    padding: .3rem .3rem 0;
    font-weight: 300;
    font-size: 1.8rem;
    color: black;
    position: fixed;
    z-index: -1;
}

#back-btn{
    width: 100px;
    align-self: flex-end;
}

/* Container Back and Credits */

.container_footer{
    display: flex;
    position: fixed;
    flex-direction: row;
    gap: 9.6rem;
    bottom: 0;
    padding: .3rem .3rem .2rem .3rem;
    align-items: baseline;
    font-family: "Times NR Seven MT Std";
}

.container_footer a{
    text-decoration: none;
    color: black;
}

.container_footer a:hover{
    letter-spacing: .1rem;
    transition: 0.6s ease-in-out;
}

.container_footer a:not(:hover){
    transition: 0.6s ease-in-out;
}

.credits{
    display: flex;
    flex-direction: row;
    gap: .35rem;
}

.credits p{
    color: rgba(0, 0, 0, 0.3);
}



/* RESPONSIVE */

@media (max-width: 480px) {


    .media-container {
        display: flex;
        flex-direction: column;
    }

    .media-container .media-wrapper{
        height: 100vh;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .media-container img {
        object-fit: cover;
        max-width: 100%;
        max-height: 100%;
    }

    #counter-container {
        gap: .4rem;
    }

    #media-counter{
        font-size: 1rem;
    }

    #media-caption {
        font-size: 1rem;
    }


    #page-info #page-description{
        text-indent: 4rem;
        padding: .3rem .3rem 0;
        font-size: 1rem;
        letter-spacing: -.01rem;
        color: black;
        position:fixed;
        top: 0px;
        z-index: -1;
    }

    #back-btn{
        display: none;
    }

    .credits{
        font-size: .7rem;
    }


    .container_footer{
        white-space: nowrap;
        overflow-x: auto;
        position: fixed;
        width: 100%;
        z-index: 999;
        gap: 0.5rem;
    }

    .container_footer::-webkit-scrollbar {
        display: none;
    }
    
    .container_footer a:hover{
        letter-spacing: 0;
    }
}


