/* Video Gallery page — grid layout + lightbox styling (page-specific) */

/* =========================================
   VIDEO GALLERY - 4 COLUMN GRID
   ========================================= */

/* Gallery wrapper */
#thumbwrapper2 {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* The actual gallery UL */
ul#huge_it_videogallery {
    display: grid !important;

    grid-template-columns: repeat(4, 1fr) !important;

    gap: 22px !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

/* Hide plugin preview item */
ul#huge_it_videogallery > li#fullPreview {
    display: none !important;
}

ul#huge_it_videogallery > li.huge_it_big_li > a {
    z-index: 3 !important;
}

ul#huge_it_videogallery > li.huge_it_big_li .overLayer {
    z-index: 4 !important;
}

ul#huge_it_videogallery > li.huge_it_big_li .infoLayer {
    z-index: 5 !important;
}

/* =========================================
   CARD
   ========================================= */

ul#huge_it_videogallery > li.huge_it_big_li {
    position: relative !important;

    display: block !important;

    width: 100% !important;
    max-width: none !important;

    height: 160px !important;
    min-height: 160px !important;

    margin: 0 !important;
    padding: 6px !important;

    box-sizing: border-box !important;

    background: #ffffff !important;

    border: 1px solid #d8d8d8 !important;
    border-radius: 0 !important;

    box-shadow: 1px 2px 4px rgba(0, 0, 0, .5) !important;

    overflow: hidden !important;
}

/* =========================================
   IMAGE
   ========================================= */

ul#huge_it_videogallery > li.huge_it_big_li > img {
    width: 100%;

    max-width: 245px !important;
    height: 148px !important;

    margin: 0 !important;
    padding: 0 !important;

    min-height: 100%;
}

/* =========================================
   CLICKABLE VIDEO LINK
   ========================================= */

ul#huge_it_videogallery > li.huge_it_big_li > a {
    position: absolute !important;

    display: block !important;

    top: 6px !important;
    left: 6px !important;

    width: calc(100% - 12px) !important;
    height: calc(100% - 12px) !important;

    margin: 0 !important;
    padding: 0 !important;

    border: none !important;
    border-radius: 0 !important;

    z-index: 6 !important;
}

/* =========================================
   OVERLAY
   ========================================= */

ul#huge_it_videogallery > li.huge_it_big_li > .overLayer,
ul#huge_it_videogallery > li.huge_it_big_li > .infoLayer {
    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    width: 100% !important;
    max-width: none !important;

    height: 100% !important;

    margin: 0 !important;

    border-radius: 0 !important;

    box-sizing: border-box !important;
}

/* =========================================
   TABLET
   ========================================= */

@media only screen and (max-width: 1000px) {

    ul#huge_it_videogallery {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        column-gap: 20px !important;
        row-gap: 20px !important;
    }

}

/* =========================================
   MOBILE
   ========================================= */

@media only screen and (max-width: 768px) {

    ul#huge_it_videogallery {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 15px !important;
    }

    ul#huge_it_videogallery > li.huge_it_big_li {
        height: 180px !important;
        min-height: 180px !important;
    }

}

/* =========================================
   SMALL MOBILE
   ========================================= */

@media only screen and (max-width: 480px) {

    ul#huge_it_videogallery {
        grid-template-columns: 1fr !important;
    }

    ul#huge_it_videogallery > li.huge_it_big_li {
        height: 200px !important;
        min-height: 200px !important;
    }

}
/* =========================================
   VIDEO GALLERY HOVER EFFECT
   ========================================= */

/* Overlay - hidden normally */
ul#huge_it_videogallery > li.huge_it_big_li .overLayer {
    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: 100% !important;

    background: rgba(255, 255, 255, 0.72) !important;

    opacity: 0 !important;

    z-index: 4 !important;

    transition: opacity 0.3s ease !important;
}

/* Information content - hidden normally */
ul#huge_it_videogallery > li.huge_it_big_li .infoLayer {
    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: 100% !important;

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

    text-align: center !important;

    opacity: 0 !important;

    z-index: 5 !important;

    transition: opacity 0.3s ease !important;

    background: transparent !important;
}

/* Show overlay when hovering */
ul#huge_it_videogallery > li.huge_it_big_li:hover .overLayer,
ul#huge_it_videogallery > li.huge_it_big_li:hover .infoLayer {
    opacity: 1 !important;
}

/* =========================================
   HOVER TEXT
   ========================================= */

ul#huge_it_videogallery > li.huge_it_big_li .infoLayer ul {
    display: block !important;

    width: 85% !important;

    margin: 0 auto !important;
    padding: 0 !important;

    list-style: none !important;

    background: transparent !important;
}

ul#huge_it_videogallery > li.huge_it_big_li .infoLayer ul li {
    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    list-style: none !important;
}

/* Title */
ul#huge_it_videogallery > li.huge_it_big_li .infoLayer h2 {
    margin: 0 0 10px 0 !important;
    padding: 0 0 8px 0 !important;

    color: #ffffff !important;

    font-family: Arial, sans-serif !important;

    font-size: 14px !important;
    font-weight: 400 !important;

    line-height: 1.3 !important;

    text-align: center !important;

    border-bottom: 2px solid rgba(255, 255, 255, 0.9) !important;
}

/* Watch Video */
ul#huge_it_videogallery > li.huge_it_big_li .infoLayer p {
    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;

    font-family: Arial, sans-serif !important;

    font-size: 17px !important;
    font-weight: 400 !important;

    text-align: center !important;
}

/* =========================================
   DARKER HOVER BACKGROUND
   ========================================= */

ul#huge_it_videogallery > li.huge_it_big_li:hover .overLayer {
    background: rgba(0, 0, 0, 0.35) !important;
}

.videos-sec {
    width: 1100px !important;
    max-width: 1075px !important;
    margin: 10px auto !important;
}

.videos-sec .container {
    width: 1100px !important;
    max-width: 1100px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* =========================================
   YOUTUBE VIDEO LIGHTBOX
   ========================================= */

.youtube-lightbox {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    background: #000 !important;

    z-index: 999999 !important;

    display: none;

    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
}

/* Show lightbox */

.youtube-lightbox.active {
    display: flex !important;
}

/* =========================================
   VIDEO CONTAINER
   ========================================= */

.youtube-lightbox-video {
    position: relative !important;

    width: 920px !important;
    max-width: 75vw !important;

    aspect-ratio: 16 / 9 !important;

    background: #000 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* YouTube iframe */

.youtube-lightbox-video iframe {
    width: 100% !important;
    height: 100% !important;

    border: none !important;

    display: block !important;
}

/* =========================================
   CLOSE BUTTON
   ========================================= */

.youtube-lightbox-close {
    position: fixed !important;

    top: 15px !important;
    right: 20px !important;

    width: 45px !important;
    height: 45px !important;

    color: #aaa !important;

    font-size: 38px !important;
    font-weight: 300 !important;

    line-height: 40px !important;

    text-align: center !important;

    cursor: pointer !important;

    z-index: 1000001 !important;

    transition: color 0.2s ease !important;
}

.youtube-lightbox-close:hover {
    color: #fff !important;
}

/* =========================================
   LEFT ARROW
   ========================================= */

.youtube-lightbox-prev {
    position: fixed !important;

    left: 25px !important;

    top: 50% !important;

    transform: translateY(-50%) !important;

    color: #aaa !important;

    font-size: 42px !important;
    font-weight: 300 !important;

    cursor: pointer !important;

    z-index: 1000001 !important;

    user-select: none !important;

    transition: color 0.2s ease !important;
}

.youtube-lightbox-prev:hover {
    color: #fff !important;
}

/* =========================================
   RIGHT ARROW
   ========================================= */

.youtube-lightbox-next {
    position: fixed !important;

    right: 25px !important;

    top: 50% !important;

    transform: translateY(-50%) !important;

    color: #aaa !important;

    font-size: 42px !important;
    font-weight: 300 !important;

    cursor: pointer !important;

    z-index: 1000001 !important;

    user-select: none !important;

    transition: color 0.2s ease !important;
}

.youtube-lightbox-next:hover {
    color: #fff !important;
}

/* =========================================
   VIDEO TITLE
   ========================================= */

.youtube-lightbox-title {
    position: fixed !important;

    bottom: 15px !important;

    left: 50% !important;

    transform: translateX(-50%) !important;

    width: 90% !important;

    color: #fff !important;

    text-align: center !important;

    font-family: Arial, sans-serif !important;

    font-size: 17px !important;
    font-weight: 400 !important;

    line-height: 1.4 !important;

    z-index: 1000001 !important;

    pointer-events: none !important;
}

/* =========================================
   MOBILE
   ========================================= */

@media only screen and (max-width: 768px) {

    .youtube-lightbox-video {
        width: 92vw !important;
        max-width: 92vw !important;
    }

    .youtube-lightbox-prev {
        left: 10px !important;
        font-size: 32px !important;
    }

    .youtube-lightbox-next {
        right: 10px !important;
        font-size: 32px !important;
    }

    .youtube-lightbox-close {
        top: 8px !important;
        right: 8px !important;
    }

    .youtube-lightbox-title {
        font-size: 14px !important;
        bottom: 8px !important;
    }
}
