/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/
*

.acf-release-date b {
    text-transform: capitalize;
}

.acf-custom-hide {
    display: none !important;
}

.acf-get-youtube {
    background: transparent !important;
    margin: 0 auto !important;
}






/* ==========================================
   SideScroller YouTube Shorts Layout
========================================== */

.ss-shorts-wrapper {
    position: relative;
    margin: 40px 0;
}

.ss-shorts-track {
    display: flex;
    gap: 16px;
    overflow: hidden;
}

.ss-short-card {
    flex: 0 0 calc((100% - 80px) / 6);
}

.ss-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
}

.ss-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Duration */
.ss-duration {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffffff;
    color: #a51c2d;
    font-weight: 700;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 8px;
    z-index: 3;
}

/* Play icon (FontAwesome) */
.ss-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #ffffff;
    z-index: 2;
    pointer-events: none;
}

.ss-play-icon i {
    background: rgba(0,0,0,0.6);
    padding: 18px;
    border-radius: 50%;
}

/* Arrows */
.ss-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 5;
}

.ss-nav-left { left: -23px; }
.ss-nav-right { right: -23px; }

.ss-nav i {
    color: #a51c2d;
    font-size: 16px;
}

/* ==========================================
   Lightbox
========================================== */

.ss-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ss-lightbox.active {
    display: flex;
}

.ss-lightbox-inner {
    position: relative;
    width: 420px;
    max-width: 90%;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

.ss-lightbox iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Lightbox arrows */
.ss-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ss-lightbox-prev { left: -70px; }
.ss-lightbox-next { right: -70px; }

.ss-lightbox-nav i {
    color: #a51c2d;
}

/* === YouTube Shorts Slider === */

.ss-shorts-wrapper {
    position: relative;
    overflow: hidden;
}

.ss-shorts-track {
    display: flex;
    gap: 20px;
    transition: transform .4s ease;
}

.ss-short {
    position: relative;
    width: calc((100% - 100px) / 6);
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.ss-short img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ss-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    background: rgba(0,0,0,.35);
    transition: .3s;
}

.ss-short:hover .ss-play {
    background: rgba(0,0,0,.55);
}

.ss-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    cursor: pointer;
}

.ss-left { left: -20px; }
.ss-right { right: -20px; }

.ss-arrow:disabled {
    opacity: .4;
    cursor: default;
}

/* === Lightbox === */

.ss-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ss-lightbox.active {
    display: flex;
}

.ss-lightbox-content {
    position: relative;
    width: 400px;
    aspect-ratio: 9 / 16;
}

.ss-lightbox iframe {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.ss-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 28px;
    color: white;
    cursor: pointer;
}
