#calendar {
    position: relative;
    z-index: 10;
}

#calendar::placeholder, #calendar::-webkit-input-placeholder {
    white-space: nowrap;
}

#results, #end-list {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    gap: 5px;
}

#end-list {
    opacity: 0;
}

#end-list.loading {
    opacity: 1;
}

#results .photo-container,
#end-list .placeholder {
    flex: 50%;
    max-width: calc(50% - 5px);
    padding: 0 2px;
    position: relative;
}

@media screen and (min-width: 570px) {
    #results .photo-container,
    #end-list .placeholder {
        flex: 33.333%;
        max-width: calc(33.333% - 5px);
    }
}

@media screen and (min-width: 570px) and (max-width: 980px) {
    #end-list .placeholder:last-child {
        display: none;
    }
}

@media screen and (min-width: 980px) {
    #results .photo-container,
    #end-list .placeholder {
        flex: 25%;
        max-width: calc(25% - 5px);
        height: 180px;
    }
}


#results {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px !important;
}

#results .photo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 0 !important;
    padding-bottom: 100% !important;
    position: relative !important;
    max-width: none !important;
    /* box-shadow: 0 0 10px rgba(0,0,0,0.2);
    border-radius: 10px; */
    /* border: 1px solid #aaa; */
    background-color: #f2f2f2;
    border-radius: 10px;
}

.photo-container img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 90%;
    max-height: 90% !important;
    margin: auto;
    /* width: auto!important;
    width: 100%; */
    border-radius: 3px;
    object-fit: cover;
    object-position: center 30%;
}

#results .photo-container .infos {
    background: rgb(0 0 0 / 65%) !important;;
    color: white !important;;
}


#results .photo-container .infos {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    padding: 5px 0 9px;
    font-size: 12px;
    font-family: sans-serif;
    border-radius: 0 0 10px 10px;
}
#results .photo-container .infos .infos-lieu {
    font-size: 11px;
    font-family: sans-serif;
    font-style: italic;
    line-height: 0.8;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));
    animation: load 1s infinite;
}

@keyframes load {
    100% {
        transform: translateX(100%);
    }
}

#end-list {
    overflow: hidden;
    gap: 5px;
    margin-top: 4px;
    pointer-events: none;
}

#end-list .placeholder {
    border-radius: 3px;
    transition: all 200ms ease-in-out;
    background-color: #f3f3f3;
    position: relative;
    min-height: 185px;
}

#end-list .placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.9) 60%, rgba(255, 255, 255, 0));
    animation: load 1s infinite;
}

@keyframes load {
    100% {
        transform: translateX(100%);
    }
}

#searchform {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    background-color: #f3f3f3;
}

#searchform .item_form.fgrow {
    margin: 0 10px;
    @media screen and (max-width: 767px) {
        margin: 10px 0;
    }
}

#searchform.dark {
    background-color: #000;
}

.item_form {

}

.item_form label {
    font-size: 12px;
    margin-bottom: 2px;
}

.presentation_calendar {
    margin-top: 60px;
    position: relative;
}

.presentation_calendar.light h1,
.presentation_calendar.light p {
    color: white
}

.presentation_calendar h1 {
    font-size: 30px;
}

#searchform.dark .item_form label {
    color: white
}

.fgrow {
    flex-grow: 1;
}

#searchform .btn {
    display: inline-block;
    padding: 6px 20px 5px;
    outline: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: "Roboto", sans-serif;
    background-color: #fa6111;
}

.icosearch {
    font-size: 30px;
    margin-right: 5px;
}

.input {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: .95rem;
    line-height: 1.5;
    color: #697386;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #e4e7e8;
    border-radius: 0.25rem;
    vertical-align: middle;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    outline: 0;
}

.input.time {
    width: 80px;
    text-align: center;
}

.select {
    display: inline-block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    line-height: 1.5;
    color: #697386;
    font-size: .95rem;
    vertical-align: middle;
    background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center;
    background-size: 8px 10px;
    border: 1px solid #e4e7e8;
    border-radius: 0.25rem;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.photo-by-hash img {
    max-width: 100%;
}


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

    #results {
        grid-template-columns: repeat(3, 1fr);
    }

}


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

    #searchform {
        flex-wrap: wrap;
    }

    #results {
        grid-template-columns: repeat(2, 1fr);
    }

}

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

    .item_form .input.time {
        width: 50px;
        text-align: center;
    }

    input#date-input {
        max-width: 110px;
    }

    #searchform .btn {
        width: 100%;
        display: block;
        margin-top: 5px;
    }

}



.fancybox__caption {
    text-align: center;
}

.fancybox__caption p {
    color: #fff;
}

.fancybox__caption__buttons {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}