/* Wrapper to control the max-width and center the video player */
.youtube-custom-shortcode-wrapper {
    margin: auto; /* Center align the player */
}

/* The player container maintaining the 16:9 aspect ratio */
.youtube-custom-shortcode-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio, maintains video aspect ratio */
    height: 0; /* Collapse the container vertically; content will expand it */
    overflow: hidden; /* Ensures no overflow from the container */
    background-color: black; /* Background color of the container */
    cursor: pointer; /* Changes cursor to indicate clickable area */
}

/* Styles for the video placeholder image */
.youtube-custom-shortcode-player img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Full width of the container */
    height: 100%; /* Full height of the container */
    object-fit: cover; /* Ensure the image covers the area without distortion */
}

/* Styles for the play button */
.youtube-custom-shortcode-player .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('../webp/youtube.webp') center center no-repeat;
    width: 68px;
    height: 48px;
    background-size: cover;
}
