/*
 * Lightbox v1.0.0
 * Author: Monu Sarkar
 * license: Open Source (Free for use in both personal and commercial projects)
*/
.hawai-gallery {
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    flex-wrap: wrap;
}

.hawai-gallery-item {
    margin: .555rem;
    position: relative;
    overflow: hidden;
    width: 29%;
}

.hawai-gallery-title {
    width: 100%;
    height: auto;
    padding: 1rem;
    position: absolute;
    bottom: -100%;
    left: 0;
    z-index: 1;
    background-color: #000c;
    color: #fff;
    transition: .1s ease-in-out all;
}

.hawai-gallery-item:hover .hawai-gallery-title {
    bottom: 0;
}

.hawai-gallery-item img {
    max-width: 100%;
    transition: .1s ease-in-out all;
    cursor: pointer;
}

.hawai-gallery-item:hover img {
    transform: scale(1.1);
}

/* Hawai Gallery */
.hawai-lightbox {
    width: 0;
    height: 0;
    padding: 5vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    visibility: collapse;
    opacity: 0;
}

.hawai-lightbox:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000000eb;
    z-index: 0;
}

.hawai-lightbox.active {
    width: 100vw;
    height: 100vh;
    visibility: visible;
    opacity: 1;
}

[hawai-lightbox-button] {
    width: 50px;
    height: 50px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    color: #000;
    cursor: pointer;
}

[hawai-lightbox-button="previous"] {
    left: 5%;
}

[hawai-lightbox-button="next"] {
    right: 5%;
}

.hawai-lightbox > img[data-hawai-preview] {
    width: 0;
    max-height: 0;
    transition: .1s ease-in-out all;
    transition-delay: .3s;
    position: relative;
}

.hawai-lightbox > img.show {
    width: auto;
    max-height: 65vh;
}

[hawai-lightbox-close] {
    content: "<";
    width: 25px;
    height: 25px;
    position: absolute;
    top: 5%;
    right: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    color: #000;
    cursor: pointer;
    border: none;
    outline: none;
}

@media(max-width:768px) {
    .hawai-gallery-item {
        width: calc(100% / 3 - 1.155rem);
    }
}