/* General Video Container Styles */
.video-container {
    transition: height .5s ease, width .5s ease;
    max-width: 100%;
    width: 100%;
    height: auto;
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
    display: flex;
    position: relative; /* Ensures spinner is positioned correctly */
    background-color: black; /* For spinner background */
    justify-content: center;
}

.fullscreen-modal .scroll-container {
    max-height: unset !important;
}

.video-show-desktop-only {
  margin-top: 24px;
  margin-bottom: -12px;
}

html {
    scroll-behavior: auto !important;  /* Disables smooth scrolling globally */
}

.video-container.expand-init {
    max-width: 100%;
    max-height: 100%;
}

.wide .video-player {
    border: none;
}

.video-player {
    border: 1px black solid;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
/*     scroll-behavior: auto; */
/*     transition: margin .2s ease; */
      display: flex;
    scroll-snap-type: x mandatory; /* Enable snap behavior */
    scroll-behavior: smooth; /* Smooth scrolling */
    width: 100%; /* Full width of the container */
  
    max-height: 320px;
}

.fullscreen-modal .scroll-container {
  max-height: unset;
}

.scroll-container.wide {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

.fullscreen-modal .scroll-container.wide {
    margin-left: 0;
    margin-right: 0;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.fullscreen-modal .scroll-container.wide::-webkit-scrollbar {
    display: none;
}

.fullscreen-modal .video-container {
    max-width: 100%;
}

/* Fullscreen Modal Styling */
.fullscreen-modal {
    /* display: none; */
    height: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: hidden;
    transition: transform .2s;
    transform-origin: 0 100%;;
    transform: scaleY(.8);
}

.fullscreen-modal.active {
    display: flex;
    transform: scaleY(1);
    height: 100%;
}

/* Form Modal Styling */
.form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.form-modal.active {
    display: flex;
      align-items: flex-start;
}

.form-container {
    background-color: white;
    color: black;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Spinner Styling */
/* .spinner {
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

/* .loader {
    border: 4px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
} */

/* @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} */

/* Control Bar Styling */
/* .control-bar {
    background-color: rgba(0, 0, 0, 0.3); 
    display: none;
    align-items: center;
    width: 40px;
    height: 90px;
    position: absolute;
    bottom: 50px;
    right: .6rem;
    flex-direction: column;
} */

/* Play Mask Overlay */
.scroll-container {
    position: relative;
}

.scroll-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent black */
    display: flex;
    align-items: start;
    justify-content: start;
    z-index: 20; /* Ensures it appears above content inside scroll-container */
}

.wide button.mute-button {
    display: block;
}

 button.mute-button  {
    padding: 1rem;
    font-size: 1.4rem;
    color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    position: sticky;
    height: 100%;
    right: 0;
    display: none;

}


/* ---- adapted ---- */

nav.top-navigation {
    position: relative;
}

.body-wrapper {
    background: white;
}

.container.mx-auto.p-6.space-y-6 {
    background: #1F4912;
}

.bg-gpDarkGreen {
    background: #1F4912;
}

div#more-content {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

.legal-consent-container .hs-richtext p ,
.legal-consent-container .hs-richtext {
    font-size: 14px !important;
}

.legal-consent-container .hs-form-booleancheckbox-display>span {
    margin-left: 0;
    margin-top: 10px;
}
.legal-consent-container .hs-form-booleancheckbox-display>span p{
    font-size: 15px !important;
}



button#like-btn {
  transition: opacity .25s;
}


button#like-btn.liked #heart-icon{
    stroke: red;
    fill: red;
}

@media (min-width: 1024px) {
  button#like-btn.liked #heart-icon {
    fill: white;
    stroke: black;
  }
}

.hs_error_rollup {
    display: none;
}


form input {
    margin-bottom: 0;
    margin-top: 0 !important;
}

/* to override template layout */
.super-hidden {
  display: none;
}

video::-webkit-media-controls-fullscreen-button { display: none; }
video::-webkit-media-controls-picture-in-picture-button { display: none; }


/* plyr */
/* plyr */
button[data-plyr='pip'],
input[data-plyr='volume'],
button[data-plyr='mute'],
/* button[data-plyr='captions'], */
button[data-plyr='settings'],
button[data-plyr='airplay'],
.plyr__controls__item.plyr__volume {
    display: none !important;
}


.plyr--video .plyr__controls {
/*   display: none; */
}

/* button.plyr__controls__item.plyr__control[data-plyr=play], */
.plyr__controls__item.plyr__progress__container{
    display: none;
}

.plyr__controls__item.plyr__time--current.plyr__time {
/*     text-align: end; */
}

#videos .plyr__captions {
  padding: 5px !important;
  font-size: 15px !important;
}

.modal-fullscreen .plyr__captions {
  padding: 20px !important;
  font-size: 18px !important;
}

.scroll-container {
    overflow-x: scroll; /* Enable horizontal scrolling */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
    -ms-overflow-style: none; /* Hide scrollbar in IE and Edge */
}

.scroll-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar in WebKit browsers (Chrome, Safari, etc.) */
}

body {
    --plyr-color-main: red !important;
}

.fullscreen-modal .scroll-container {
/*   margin-top: -113px; /*height of the button and like*/ */
}

.video-player {
  border: none;
}

#muteAllButton {
  margin-top: -5px;
}

#muteAllButton .sound {
    display: none;
}

/* When the button has the "muted" class, show the muted icon and hide the unmuted icon */
#muteAllButton.muted .nosound {
    display: inline-block;
}
#muteAllButton.muted .sound {
    display: none;
}

/* When the button does not have the "muted" class, show the unmuted icon and hide the muted icon */
#muteAllButton:not(.muted) .nosound {
    display: none;
}
#muteAllButton:not(.muted) .sound {
    display: inline-block;
}


.pagination-dots {
    text-align: center;
    background: linear-gradient(to top, black, rgba(0, 0, 0, 0));
    height: 50px;
    margin-top: -50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15;
    position: relative;
}

.dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin: 0px 10px;
    border-radius: 50%;
    cursor: pointer;
    border: solid 1px white;
}

.dot.active {
    background-color: white;
}

.fullscreen-modal .pagination-dots {
    height: 20px;
    position: absolute;
    bottom: 115px;
    width: 94%;
}

.fullscreen-modal #enter-fullscreen {
    display: none;
}

/* test with swiper */

/* Style for swiper container */
        .swiper-container {
            width: 100%;
            height: 500px; 
            max-height: 320px;
            margin: 0 auto;
            overflow-x: hidden;
            background: black;

        }




        .fullscreen-modal .swiper-container {
            width: 100%;
            height: 100%; 
            max-height: unset; 
            margin: 0 auto;
            overflow-x: hidden;

        }

        /* Style for swiper slides */
        .swiper-slide {
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #000; /* Just in case there is empty space */
        }

        /* Style for video inside swiper */
        .swiper-slide video {
            width: 100%;
            height: 100%;
            object-fit: contain; /* Ensures aspect ratio is preserved */
        }

        /* Optional: Styling for navigation buttons */
        .swiper-button-next,
        .swiper-button-prev {
            color: white;
        }

.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal.swiper-pagination-bullets-dynamic {
    position: relative;
    margin-top: 12px;
}

/* add after-load class to adjust it */
.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal.swiper-pagination-bullets-dynamic.after-load {
    position: relative;
    margin-top: -12px;
    margin-bottom: 0;
    zoom: 2;
}


.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
    border: solid 2px white;
    opacity: 1 !important;
}

.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal.swiper-pagination-bullets-dynamic .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: white !important;
}

        /* Styling for pagination dots */
/*        .swiper-pagination {
            position: relative !important;
            
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 15;
          bottom: 0 !important;
          height: 48px;
          margin-top: -48px;
          gap: 6px;
            max-width: 75%;
            margin-left: auto;
          margin-right: auto;
        }*/
/*
.swiper-pagination {
 left: unset !important; 
    transform: none !important; 
}*/
/*
.swiper-pagination-bullet {
    height: 16px !important;
    width: 16px !important;
    border: solid 2px white;
    opacity: 1 !important;
}*/
/*
.swiper-pagination-bullet-active {
  background-color: white !important;
}*/

.swiper-slide {
  width: inherit !important;
}

#enter-fullscreen {
    z-index: 10;
    padding: 5px;
    border-radius: 4px;
    border: none;
    margin-top: -28px;
    transform: translateY(42px);
    position: relative;
    margin-left: 10px;
}

#enter-fullscreen, #closeModal {
   transition: all .3s ease;
    background: rgba(0, 0, 0, 0.3);
}


#enter-fullscreen:hover, #closeModal:hover {
   background: var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));
}

.opaque-filter {
  transition: filter 0.5s ease; /* Animate when filter changes */
}

.opaque-until-load {
  filter: brightness(0); /* Start fully black */
  -webkit-filter: brightness(0); /* Safari support */
}

