/*
Theme Name: webKO 2024 child
Theme URI: 
Author: webKO
Author URI: 
Description: 2024 child theme
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfour
Text Domain: webko-2024-child
Tags: 
*/

.acf-map {
    width: 100%;
    height: 400px;
    margin: 20px 0;
}

.acf-map img {
    max-width: inherit !important;
}

.webko-youtube {
    position: relative;
    width: 100%;
    max-width: 240px;
    height: 430px;
    margin: 25px auto;
    overflow: hidden;
}
.webko-youtube-thumb img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    object-position: center;
}
.webko-youtube-thumb {
    position: absolute;
    inset: 0;
    /*cursor: pointer;*/
}
.webko-youtube-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 50px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
}
.webko-youtube-play span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
}
.webko-youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.webko-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.webko-gallery-track {
    display: flex;
    transition: transform 0.4s ease;
}

.webko-gallery-slide {
    min-width: 100%;
    position: relative;
}

.webko-gallery-slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.webko-gallery-prev,
.webko-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.webko-gallery-prev {
    left: 15px;
}

.webko-gallery-next {
    right: 15px;
}

.webko-gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 2;
}

.webko-gallery-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.webko-gallery-dot.active {
    background: #fff;
}

/* Clickable gallery images */

.webko-gallery-image {
    cursor: pointer;
}


/* Lightbox */

.webko-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.92);

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.2s ease;
}

.webko-lightbox.active {
    opacity: 1;
    visibility: visible;
}


/* Full image */

.webko-lightbox-image {
    display: block;

    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* Close */

.webko-lightbox-close {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 45px;
    height: 45px;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.6);
    color: #fff;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    z-index: 3;
}


/* Previous / Next */

.webko-lightbox-prev,
.webko-lightbox-next {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 50px;
    height: 50px;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.6);
    color: #fff;

    font-size: 28px;

    cursor: pointer;

    z-index: 3;
}

.webko-lightbox-prev {
    left: 20px;
}

.webko-lightbox-next {
    right: 20px;
}


/* Mobile */

@media (max-width: 768px) {

    .webko-lightbox {
        padding: 10px;
    }

    .webko-lightbox-image {
        max-width: 96vw;
        max-height: 90vh;
    }

    .webko-lightbox-prev,
    .webko-lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .webko-lightbox-prev {
        left: 8px;
    }

    .webko-lightbox-next {
        right: 8px;
    }

}
