/* -- Gallery - Nav -- */

#gallery_nav {
    margin: 40px auto;
    text-align: center;
}
#gallery_nav label {
    display: block;
    margin: 0 auto 10px;
    font-size: 1.05rem;
    font-weight: 500;
    font-style: italic;
}
#gallery_nav select {
    padding: 10px;
    background-color: #fff;
    max-width: 300px;
    width: 100%;
    border: 2px solid var(--brown);
    cursor: pointer;
    font-size: .95rem;
    font-weight: 500;
    transition: background-color .33s;
}



/* -- Gallery - Main -- */

.gallery-wrapper {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    transition: opacity .3s, transform .3s;
}
.gallery-fade-out {
    opacity: 0;
    transform: translateX(-30px);
}
.gallery-loader {
    display: block;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border: 5px solid #eee;
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.p-noscript {
    font-weight: 700;
    color: #FA413F;
}

#gallery_output {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 60px auto 20px;
    padding: 0;
}
.gallery-item {
    position: relative;
    width: 24%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px .5% 0;
}
.gallery-item img {
    width: auto;
    height: 115%;
    transition: opacity .5s, transform .5s;
}
.gallery-item img.vertical-img {
    width: 115%;
    height: auto;
}
.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    fill: #111;
    opacity: 0;
    transition: opacity .5s;
}
.gallery-item:hover .gallery-icon {
    opacity: 1;
}
.gallery-item:hover img {
    opacity: .6;
    transform: scale(1.05);
}

@media screen and (max-width: 1200px) {
    .gallery-item {
        width: 32.3333333333%;
    }
}

@media screen and (max-width: 900px) {
    .gallery-item {
        width: 49%;
    }
}

@media screen and (max-width: 600px) {
    .gallery-item,
    .gallery-item img {
        width: 100%;
        height: auto;
    }
}



/* -- Gallery - Lighthouse -- */

.fancybox-caption__body {
    max-height: 25vh;
}