/*
 * Gallery section style for barone template.
 * Based on maori light-gallery.css layout.
 * 3 columns: left/right alternate short/tall, center all tall.
 */

.mobile {
    display: none;
}

section.gallery-container {
    background-color: #f2f2f2;
    padding: 0 5% 2em 5%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    position: relative;
}

section.gallery-container.gallery-first {
    padding-top: 104px;
}

section.gallery-container.gallery-white {
    background-color: #fff;
}

section.gallery-container .gallery-title {
    font-size: 1.6em;
    font-weight: 600;
    font-style: normal;
    text-decoration: none;
    color: #1c1c1e;
    letter-spacing: .5px;
    margin: 0;
    padding: .8em 0 .3em;
    align-self: flex-start;
    width: auto;
    text-transform: uppercase;
    font-family: 'Nunito Sans', sans-serif;
}

section.gallery-container .customize-thumbnails-gallery {
    display: block;
    width: 75%;
    padding-top: 2em;
}

section.gallery-container .customize-thumbnails-gallery .image-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

section.gallery-container .customize-thumbnails-gallery .col {
    width: 33.33%;
    padding: 0 .25em;
    box-sizing: border-box;
}

section.gallery-container .customize-thumbnails-gallery .col .image-wrapper {
    width: 100%;
    display: flex;
    height: auto;
    cursor: zoom-in;
    overflow: hidden;
}

section.gallery-container .customize-thumbnails-gallery .col .image-wrapper picture {
    display: flex;
    width: 100%;
}

section.gallery-container .customize-thumbnails-gallery .col .image-wrapper .image,
section.gallery-container .customize-thumbnails-gallery .col .image-wrapper img {
    width: 100%;
    height: 12em;
    object-fit: cover;
    margin-bottom: .5em;
    transition: transform .35s ease;
}

/* Side columns: even image-wrappers are tall (alternating small/tall) */
section.gallery-container .customize-thumbnails-gallery .col:not(.center) .image-wrapper:nth-child(even) .image,
section.gallery-container .customize-thumbnails-gallery .col:not(.center) .image-wrapper:nth-child(even) img {
    height: calc(24em + .5em);
}

/* Center column: all images are tall */
section.gallery-container .customize-thumbnails-gallery .col.center .image-wrapper .image,
section.gallery-container .customize-thumbnails-gallery .col.center .image-wrapper img {
    height: calc(24em + .5em);
}

section.gallery-container .image-wrapper:hover img {
    transform: scale(1.05);
}

section.gallery-container .gallery-action {
    text-align: center;
    padding: 2.5em 0 1em;
    width: 100%;
}

section.gallery-container .button.line.dark {
    border: 2px solid #1c1c1e;
    color: #1c1c1e;
    background-color: transparent;
    padding: .7em 2.5em;
    letter-spacing: .1em;
    font-size: 1em;
    text-transform: uppercase;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease;
}

section.gallery-container .button.line.dark:hover {
    background-color: #1c1c1e;
    color: #FFFFFF;
}

.hide-img {
    display: none !important;
}

.show-img {
    opacity: 1 !important;
    height: auto !important;
    width: 100% !important;
    display: flex !important;
}

.lg-container.lg-show {
    position: relative;
    z-index: 10001;
}

/* Responsive */
@media screen and (max-width: 768px) {
    section.gallery-container .customize-thumbnails-gallery {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    section.gallery-container .customize-thumbnails-gallery .col {
        display: none;
    }

    .mobile {
        display: block;
    }

    section.gallery-container .customize-thumbnails-gallery .mobile .image-wrapper {
        width: 100%;
        display: flex;
        height: auto;
    }

    section.gallery-container .customize-thumbnails-gallery .mobile .image-wrapper img {
        width: 100%;
        height: auto;
        object-fit: cover;
        margin-bottom: .5em;
    }
}
