body {
    margin: 0px;
}

.btn-s1 .elementor-button {
    background: #fff !important;
    color: #000 !important;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 13px;
    padding: 8px 8px 8px 14px;
    height: 46px;
    border-radius: 5px;
}
.btn-s1 .elementor-button-icon {
    font-size: 18px;
    width: 30px;
    height: 30px;
    background: #6dd6e1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    margin-left: 5px;
}
.btn-s1 .elementor-button-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Editorial gallery: first image is featured, followed by a four-column grid. */
.single .gallery {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 10px;
    width: 100%;
}

.single .gallery > br {
    display: none !important;
}

.single .gallery .gallery-item {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single .gallery .gallery-item:first-of-type {
    grid-column: span 2;
}

.single .gallery .gallery-icon,
.single .gallery .gallery-icon a {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.single .gallery .gallery-icon {
    aspect-ratio: 0.63;
    overflow: hidden;
}

.single .gallery .gallery-item:first-of-type .gallery-icon {
    aspect-ratio: 1.3;
}

.single .gallery img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: cover;
    cursor: zoom-in;
    border-radius: 8px;
}

/* Lightbox for WordPress galleries inside single posts. */
.hoolabs-post-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 54px 72px;
    background: rgba(0, 0, 0, 0.94);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.hoolabs-post-gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.hoolabs-post-gallery-lightbox__figure {
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    text-align: center;
}

.hoolabs-post-gallery-lightbox__image {
    max-width: 100%;
    max-height: calc(100vh - 108px);
    display: block;
    margin: auto;
    object-fit: contain;
}

.hoolabs-post-gallery-lightbox__caption {
    margin-top: 10px;
    color: #fff;
    font-size: 13px;
}

.hoolabs-post-gallery-lightbox__close,
.hoolabs-post-gallery-lightbox__nav {
    position: absolute;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.hoolabs-post-gallery-lightbox__close {
    top: 16px;
    right: 22px;
    padding: 8px;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
}

.hoolabs-post-gallery-lightbox__nav {
    top: 50%;
    width: 54px;
    height: 70px;
    padding: 0;
    font-size: 48px;
    font-weight: 200;
    line-height: 1;
    transform: translateY(-50%);
}

.hoolabs-post-gallery-lightbox__nav--prev {
    left: 8px;
}

.hoolabs-post-gallery-lightbox__nav--next {
    right: 8px;
}

.hoolabs-post-gallery-lightbox__close:hover,
.hoolabs-post-gallery-lightbox__nav:hover {
    opacity: 0.7;
}

@media only screen and (max-width: 767px) {
    .hoolabs-post-gallery-lightbox {
        padding: 54px 16px;
    }

    .hoolabs-post-gallery-lightbox__image {
        max-height: calc(100vh - 130px);
    }

    .hoolabs-post-gallery-lightbox__nav {
        width: 42px;
        height: 58px;
        background: rgba(0, 0, 0, 0.35);
        font-size: 38px;
    }
}

@media only screen and (max-width: 767px) {
    .single .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media only screen and (max-width: 479px) {
    /* .single .gallery {
        grid-template-columns: 1fr;
    }

    .single .gallery .gallery-item:first-of-type {
        grid-column: auto;
    }

    .single .gallery .gallery-icon,
    .single .gallery .gallery-item:first-of-type .gallery-icon {
        aspect-ratio: 4 / 5;
    } */
}
