@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    font-family: "Outfit", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

html, body {
    height: 100%;
    width: 100%;
}
#map {
    height: 100%;
}
#previews-wrapper{
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;

    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;


    /*padding-top: 1rem;*/

    z-index: 1000;
}
#previews{
    backdrop-filter: blur(5px);
    background-color: #3636367a;

    display: flex;
    flex-flow: column nowrap;

    border-radius: 4px;
}
#previews #preview-minias{
    max-width: calc(100vw - 2.4rem);
    max-height: 40vh;
    overflow-y: auto;

    border-radius: 4px;

    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem;

}
#previews img{
    width: auto;
    max-height: 20vh;
    border-radius: 4px;
    cursor: pointer;
    /*flex: 1;*/
    /*object-fit: contain;*/
}
#previews #preview-header {
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    /*background: antiquewhite;*/
    color: white;
    padding: 0 0.25rem;
    width: calc(100% - 0.5rem);
    height: 1.5rem;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    line-height: 1.5rem;
    gap: 0.4rem;
}
#previews #preview-date {
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    font-size: 1rem;
    text-wrap: nowrap;
}
#previews #preview-close {
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    font-size: 1rem;
    text-wrap: nowrap;
    /*color: #ed2828;*/
    cursor: pointer;
}

#viewer-container{

    display: none;

    backdrop-filter: blur(5px);
    background-color: #3636367a;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    /*padding: 4rem;*/
    /*display: flex;*/
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
#viewer-box{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 15vh;
    /*bottom: calc(15vh + 1rem);*/
    /*margin-top: 1rem;*/
    right: 0;
    overflow: hidden;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
}
#viewer-image{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 20px;
}
#viewer-info{
    position: absolute;
    /*top: calc(85vh - 1.3rem);*/
    bottom: calc(-4vh + 3rem);
    left: calc(85vh * 0.05);
    right: calc(85vh * 0.05);
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}
#viewer-info p{
    background-color: rgba(255, 255, 255, 0.65);
    color: black;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    line-height: 1rem;
}
#viewer-loader{
    width: 5rem;
    height: 5rem;
    animation: spin 1s linear infinite;
    pointer-events: none;
}
@keyframes spin {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}
#viewer-minia{
    position: absolute;
    top: 85vh;
    left: 1rem;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(234, 234, 234, 0.73);

    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-radius: 4px;
}
.viewer-minia-box{
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    height: 100%;
}
#viewer-minia img{
    width: auto;
    max-width: calc(14vw - 1.1rem);
    height: calc(100% - 0.5rem);
    object-fit: contain;
    cursor: pointer;
    border-radius: 4px;
    flex: 1

}
#close-btn{
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #e6e4e2;
    padding: 0;
    line-height: 2rem;
    width: 2rem;
    height: 2rem;
    text-align: center;
    cursor: pointer;
}
.minia-btns{
    opacity: 0.5;
    height: calc(100% - 4rem) !important

}
.hue-marker-dernier {
    filter: hue-rotate(142deg); /* Change hue color */
}

#btn-wrapper{
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 1500;
}
#btn-wrapper #btn-toggle-markers, #btn-wrapper #btn-toggle-fav{
    padding: 0.5rem;
    background-color: rgba(237, 230, 216, 0.82);
    border-radius: 4px;
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    cursor: pointer;
    box-shadow: #33333340 2px 2px 2px;
}



body.fullpage{
    background: url("/photos/20250225_164248.jpg") no-repeat center/cover;
    background-position-x: 55%;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
}
body.fullpage form{
    background-color: rgba(230, 228, 226, 0.61);
    padding: 1rem 2rem;
    border-radius: 4px;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    box-shadow: #33333340 2px 2px 2px;
}
body.fullpage form h1{
    margin-bottom: 0.5rem;
}
body.fullpage form input{
    border: none;
    outline: none;
    padding: 4px;
    border-radius: 4px;
}
body.fullpage form button{
    border: none;
    outline: none;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    background-color: #9bc8ff;
    box-shadow: #33333340 2px 2px 2px;
}