/* -----GALERY IMAGES------- */

.gallery-wrapper {
    /* height: 1000px; */
    width: min(1500px, 100%);
    padding-top: 20px;
    padding-bottom: 20px;
    margin: 0 auto;
    columns: 315px;
    column-gap: 1em;

}

.gallery-image-container {
    /* max-width: 315px; */
    cursor: pointer;
    user-select: none;
    position: relative;
    break-inside: avoid;
    
}

.gallery-image {
    opacity: 0;
}
.gallery-image, .placeholder {
    display: block;
    margin-bottom: 1em;
    width: 100%;
    transition: .5s;
    border-radius: .2rem;
    transition: 
        opacity .8s ease,
        transform .5s,
        box-shadow .5s;
}

.gallery-image-container:hover .gallery-image{
    transform: scale(1.03);
    box-shadow: 0 0 10px 0px #000000;
}
.gallery-image-container .image-description {
    position: absolute;
    bottom: 8px;
    left: 16px;
    color: white;
    text-shadow: 0 0 3px #000000;
}

.image-description {
    opacity: 0;
    transition: opacity .7s;
}
.gallery-image-container:hover .image-description {
    opacity: 1;
}

.gallery-image.visible {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .gallery-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* //////END GALLERY IMAGES///////////// */

/* ---------------------TABS---------------------------- */

.open-tabs-btn {
    display: none;
}

.gallery-tab.hidden {
    display: none;
}

.gallery-tab.visible {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-tab.visible > .color-background > h2 {
    text-align: center;
}

.gallery-btns-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    
}

.gallery-btns-wrapper > .tab-btns {
    margin-left: .1rem;
    margin-right: .1rem;
    margin-bottom: none;
}

#title-gallery {
    text-align: center;
    margin-bottom: 3rem;
    text-decoration: underline;
}

.tab-btns {
    color: var(--primary-color);
    margin-bottom: none;
    border: none;
    border-radius: 5px 6px 0 0;;
    padding: .8rem;
    font-size: 1.2rem;
    user-select: none;
    background-color: #99b099;
}

.tab-btns:hover {
    cursor: pointer;
}

.tab-btns.selected {
    text-decoration: underline;
    background-color:  var(--secondary-color);
    background: linear-gradient(180deg,rgb(96, 106, 112) 0%, var(--secondary-color) 23%)
}


@media screen and (max-width: 768px) {

    .gallery-btns-wrapper {
        display: flex;              /* keep it in the layout */
        flex-direction: column;
        max-height: 0;              /* collapsed state */
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .gallery-btns-wrapper.visible {
        max-height: 500px;          /* large enough to fit content */
        opacity: 1;
    }

    .gallery-btns-wrapper > .tab-btns {
        width: 100%;
        text-align: left;
        border-radius: 0;
    }

    .tab-btns {
        margin-left: .05rem;
        margin-right: .05rem;
        margin-bottom: 0;
        width: 100%;
        border-bottom: 1px solid var(--background-color);
    }

    .open-tabs-btn {
        display: block;
        width: 70%;
        margin: 0 auto;
        margin-bottom: 10px;
        background-color: var(--background-color);
        box-shadow: 2px 2px #000000;
    }
}

/* ////////END TABS */
/* ////////////////////////////////////////////////////// */




/* FIELDVIEW SECTION */
#field-view {
    position:fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    /* background-color: rgba(0, 0, 0, 0.966); */
    background-image: radial-gradient(rgb(23, 27, 27), rgba(44, 42, 42, 0.87));
    z-index: 1000;
    display: flex;
    justify-content: center;
    
}

#field-image-wrapper {
    /* width: 100%;
    height: 100%; */
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;

}

#field-image-wrapper img {
    width: auto;

    @media screen and (max-width: 1000px) {
        width: 100%;
        height: auto;
        margin-right: auto;
        margin-left: auto;
    }
}



.image-displayed {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    height: 90vh;
    width: auto;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.5);
    border-radius: 2px;

} 

#close-button {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 30px;
    margin-right: 30px;
    right: 0;
    height: 30px;
    width: 30px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.486);
    border: 2px rgba(0, 0, 0, 0.397);
    z-index: 10;
}

#close-button:hover {
    background-color: #ffffff; 
}
#close-button::before,
#close-button::after {
    position: absolute;
    top: 50%;
    left: 50%;
    content: '';
    width: 2px; 
    height: 18px; 
    background-color: #000000; 
    transform: translate(-50%, -50%) rotate(45deg); 
}

#close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg); 
}

/* /////////////////END FIELD VIEW/////////////////////////// */
/* //////////////////////////////////////////////////////// */