:root { --sticky-header-height: 64px; }

.ykb-sticky-header.logo-sticky {
    display: none !important;
}

.ykb-sticky-header.is-sticky .logo-sticky {
    display: block !important;
}

.ykb-sticky-header .logo-normal {
    display: block;
}

.ykb-sticky-header .logo-sticky,
.ykb-sticky-header.is-sticky .logo-normal {
    display: none;
}

.ykb-sticky-header.is-sticky{
    background-color: #fff !important;
    position: fixed;
    top: 0; left: 0; right: 0;
    animation: ykbSlideFromTop .25s ease both;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
  }

  .ykb-sticky-header.is-sticky a {
    color: var(--e-global-color-primary) !important;
  }

  @media (prefers-reduced-motion: reduce){
    .ykb-sticky-header.is-sticky{ animation: none; }
  }

  @keyframes ykbSlideFromTop {
    from { transform: translateY(-16px); opacity: 0; }
    to   { transform: translateY(0);      opacity: 1; }
  }

  /* prevent layout jump while sticky */
  body.has-sticky{
    /* padding-top: var(--ykb-sticky-header-height); */
  }

.container[data-post-type="media-audio-visual"] {
    max-width: 1340px;
    margin: 0 auto;
    padding: 100px 20px;
}

.container[data-post-type="media-audio-visual"] * {
    font-family: 'Noto Sans', sans-serif;
}

.container[data-post-type="media-audio-visual"] .row:has(> .col-6) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.container[data-post-type="media-audio-visual"] p {
    font-size: 16px;
    line-height: 24px;
    color: #7A7A7A;
}

.header--left a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    font-size: 20px;
    letter-spacing: 0.15px;
    font-weight: bold;
    color: #616161;
}

.header--left h4 {
    font-size: 34px;
    letter-spacing: 0.25px;
    font-weight: bold;
}

.channel-details {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.channel-header {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.channel-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-header h6 {
    font-size: 20px;
    font-weight: bold;
    color: #2E2D2C;
    margin: 0;
}

.channel-description p {
    font-size: 16px;
    letter-spacing: 0.5px;
    color: #2E2D2C;
}

.video-grid-wrapper {
    position: relative;
    margin-top: 85px;
}

.video-grid-wrapper > h4 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 24px !important;
}

.video-grid-wrapper .slick-list {
    margin: 0 -12px;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr repeat(1, 1fr);
    gap: 40px;
}

.video-grid .carousel--item-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.video-grid .carousel--item img {
    aspect-ratio: 16/9;
    width: 100%;
    object-fit: cover;
}

.post-details-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
}

.post-loop h5 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.post-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #0B357B;
    border: 2px solid #0B357B;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1.25px;
    border-radius: 80px;
    transition: .3s ease-in-out;
}

.post-button:hover {
    background-color: #0B357B;
    color: #fff;
}

.post-button svg {
    fill: #0B357B;
    transition: .3s ease-in-out;
}

.post-button:hover svg {
    fill: #fff;
}

.video-grid--nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    margin: 0 -40px !important;
    width: calc(100% + 80px);
}

.video-grid--prev,
.video-grid--next { 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background-color: #0B357B;
    cursor: pointer;
    transition: .3s ease-in-out;
}

/* Popup Overlay */
.popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

/* Popup Content */
.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1300px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.close-popup {
    position: absolute;
    top: -100px;
    right: 0;
    background: none;
    border: none;
    font-size: 80px;
    color: #fff;
    padding: 0;
    cursor: pointer;
}

.close-popup:hover {
    background: transparent;
}

iframe {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    max-height: 80vh;
    border: none;
}