body {
    --play-button-size:  min(20vw, 60px);
}
.elementor-widget-imc_reel_widget > .elementor-widget-container {
	display: flex;
	justify-content: center;
}
.heading_container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 30px;
    align-items: center;
}

.container_reel_wrapper {
    width: 100%;
    aspect-ratio: 370 / 750 !important;
    max-width: 300px;
    position: relative;
}

.container_reel {
    aspect-ratio: 370 / 750 !important;
    position: relative;
}

.reel_wrapper {
    height: 100%;
    padding: 2%;
    max-width: 300px;
    position: relative;
}

.reel_wrapper video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: left center;
    left: 0;
    top: 0;
    border: none;
    cursor: pointer;
    position: relative;
    border-radius: 36px;
}
.reel_wrapper video:focus-visible {
    outline-offset: 14px;
}
.inline_reel .reel_wrapper video:focus-visible {
    outline-offset: 4px;
}

.container_reel:after {
    content: " ";
    pointer-events: none;
    position: absolute;
    z-index: 11;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-image: url("/wp-content/plugins/imc-reel-widget/inc/img/phone-mockup.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    pointer-events: none;
}

.reel_wrapper:after {
    content: " ";
    position: absolute;
    width: 110px;
    height: 110px;
    top: unset;
    bottom: calc(50% - 55px);
    left: calc(50% - 55px);
    right: 0;
    background-image: url("/wp-content/plugins/imc-reel-widget/inc/img/play_button.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    pointer-events: none;
}

.reel_wrapper.playing:after {
    content: unset;
}

.inline_reel .container_reel, .inline_reel {
    margin-top: 0;
    max-width: unset;
    aspect-ratio: unset !important;
}
.inline_reel .container_reel::after {
    display: none;
}
.inline_reel .reel_wrapper {
    height: auto;
    max-width:400px;
    aspect-ratio: 16 / 12;
    padding:0;
    transition: 0.5s;
}
.inline_reel .reel_wrapper video {
    object-position: center center;
    border-radius: 10px;
    object-fit: cover;
}
.inline_reel .reel_wrapper::after {

    bottom: calc(63% - (var(--play-button-size) / 2));
    left: unset;
    right: calc(50% - (var(--play-button-size) / 2));
    width: var(--play-button-size) ;
    height:var(--play-button-size) ;
}
.inline_reel .reel_wrapper video {
    border-radius: 19px;
}
.inline_reel .reel_wrapper.playing {
    max-width: 300px;
    aspect-ratio: 9 / 16;
}
.inline_reel .heading {
    width: 60%;
}
.inline_reel .container_reel_wrapper {
    width: 40%;
    max-width: 400px;
}

.reel_wrapper::before {
  content: "";
  display: block;
  position: absolute;
  height: 80px;
  width: 80px;
  left: calc(50% - 35px);
  top: calc(50% - 35px);
  background-color: rgba(170, 167, 167, 0.77);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 45px;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}
.reel_wrapper:has(video[sound-on="true"])::before {
  background-image: url(/wp-content/uploads/2025/11/volume-up.svg);
  animation: fadeScaleOnce 0.5s ease-in-out forwards;
}
.reel_wrapper:has(video.anim-sound-off[sound-on="false"])::before {
  background-image: url(/wp-content/uploads/2025/11/volume-xmark.svg);
  animation: fadeScaleOnce2 0.5s ease-in-out forwards;
}
@keyframes fadeScaleOnce2 {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  30% {
    opacity: 1;
    transform: scale(1.1);
  }
  70% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
@keyframes fadeScaleOnce {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  30% {
    opacity: 1;
    transform: scale(1.1);
  }
  70% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}


@media only screen and (min-aspect-ratio: 1/1) {
    .reel_wrapper .fullscreen {
        object-fit: contain !important;
        object-position: center center !important;
    }
}

/* @media only screen and (max-aspect-ratio: 1/1) {
	.reel_wrapper.playing video {
		object-fit: contain !important;
        object-position: center center !important;
	}
}*/

@media only screen and (max-width: 1250px) {
    body {
        --play-button-size:  min(20vw, 90px);
    }

    .inline_reel {
        flex-direction: column;
        align-items: flex-start;

        >div {
            width: 100% !important;
        }
    }

    .inline_reel .reel_wrapper.playing {
        max-width: 400px !important;
    }
}
@media only screen and (max-width: 1199px) {
    .reel_wrapper {
        padding: 3px 7px;
    }
}
/*
@media only screen and (max-width: 1024px) {
    .heading_container {
        flex-direction: column;
    }

    .container_reel, .container_reel_wrapper {
        margin-top: 0;
        max-width: unset;
        aspect-ratio: unset !important;
    }

    .container_reel::after {
        display: none;
    }

    .reel_wrapper {
        height: auto;
        max-width: 400px;
        aspect-ratio: 16 / 12 !important;
        padding: 0
    }

    .reel_wrapper video {
        border-radius: 10px;
    }

    .reel_wrapper::after {
        bottom: calc(50% - (min(20vw, 90px) / 2)) !important;
        left: unset !important;
        right: calc(50% - (min(20vw, 90px) / 2)) !important;
        width: min(20vw, 90px) !important;
        height: min(20vw, 90px) !important;
    }
}

@media only screen and (max-width: 300px) {
    .reel_wrapper video {
        border-radius: 19px;
    }
}
*/