@import "./main.css";
@import "./header/header.css";

body {
    background-color: var(--gallery-background-colour);
}

/*shared styling*/
.wrapper{
    width: 100vw;
    height: 100vh;
    
    user-select: none;
    background-color: var(--gallery-background-colour);
}


/*track*/
.gallery{
    position: absolute;
    display: flex;
    justify-content: flex-start;
    align-items: center;

    z-index: 1;
}

.gallery.side{
    transition: top 400ms ease-in-out;
    flex-direction: column;
    gap: 25px 25px;
    width: 150px;
    left: calc(95vw - 150px);
    

    transition: left 400ms ease, top 400ms ease-in-out;
}

.gallery.horizontal {
    
    transform: translate(-10%, -50%);

    opacity: 0;

    flex-direction: row;
    gap: 4vmin;
    top: 50%;
    left: 50%;

    transition: transform 400ms ease, left 400ms ease;
    
    
}

.element.horizontal {
    position: relative;

    margin: 0;
    height: 300px;
    width: 300px;

    overflow: hidden;

    transition: width 400ms ease, height 400ms ease, boarder-radius 400ms ease;
}

/*hover effect*/
.element.horizontal:hover{
    opacity: 1;
}
.element.horizontal:hover + .thumb.horizontal{
    filter: saturate(0.4);
}

.element.side {
    height: 100px;
    width: 100px;

    border-radius: 5%;
    
    z-index: 1;

    overflow: hidden;

    transition: height 200ms ease-in-out, width 200ms ease-in-out;
}

.element.side#active {
    height: 150px;
    width: 150px;

    z-index: 2;
}

.name.horizontal {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;

    transition: opacity 300ms ease-out;
    
}

.name.horizontal:hover{
    opacity: 1;
}

.name.side {
    display: none;
}

.name.horizontal > span{
    position: relative;

    font-size: 6rem;
    opacity: inherit;
}



.thumb.horizontal{
    position: relative;
    top: -300px;
    z-index: 0;
    
    width: 100%;
    height: auto;

    transition: filter 300ms ease-out, top 400ms ease;
}

.thumb.side {
    position: relative;
    width: 100%;
    top: 150px;
}

/*side specific styling*/

.scarf.side{
    position: absolute;
    left: calc(95vw - 150px);
    z-index: auto;

    width: 150px;
    height: 100vh;

    background: hsl(0, 0%, 10%);

    border-left: solid 2px;
    border-right: solid 2px;
    border-color: hsl(0, 0%, 50%);
}

.scarf.horizontal{
    display: none;
}

.button_wrapper.horizontal{
    display: none;
}

.button_wrapper.side{
    position: absolute;
    height: 100vh;
    width: 90px;
    margin-left: 5vw;
    display: flex;
    align-items: center;
}

.button{
    width: 50px;
    height: 50px;
    transform: rotate(45deg);
    background-color: var(--home-main-colour);
    display: flex;
    align-items: center;
    justify-content: center;


    transition: background-color 200ms ease-in-out;
}

.button:hover .inner_button{
    transform: translate(-5px, 5px);
}

.inner_button{
    width: 15px;
    height: 15px;
    background-color: transparent;
    border-left: 5px white solid;
    border-bottom: 5px white solid;

    transition: transform 300ms ease-in-out;
}


*{
    --current-img-width: 540px;
    --current-img-height: calc((var(--current-img-width)*1.5));

    --val-left: 5vw;
}


.current_values{
    position: absolute;
    top: 50vh;

    /*display: flex;*/
    display: none;
    flex-flow: column nowrap;
    justify-content: space-around;
    align-items: center;


    background-color: var(--about-main-colour);
}

.current_values > span {
    font-size: 2rem;
}

.current_img.side{
    position: absolute;
    top: 10vh;
    left: calc(50vw - var(--current-img-width)/2);
    display: grid;
    justify-items: center;
    align-items: center;

    height: 80vh;
    width: 53.3vh;

    /*background-color: var(--home-main-colour);*/
}

.current_img > img {
    width: 100%;
    object-fit: cover;
}
.current_img.horizontal {
    position: absolute;
    display: none;
}

.current_img.horizontal > img{
    display: none;
}



