/*
 Theme Name:  RetroTube Child Theme
 Theme URI:   https://www.wp-script.com/adult-wordpress-themes/retrotube/
 Description: Child Theme for WP-Script RetroTube theme
 Author:      WP-Script
 Template:    retrotube
 Text Domain: wpst
 Version:     1.0.0
*/

/*
IMPORTANT:
- Do not change "Author: WP-Script" in the header of this file. 

Need help? Check the following links to get more information about child themes:
- WP-Script help: https://www.wp-script.com/blog/how-to-create-a-wordpress-child-theme/
- WordPress developer resource: https://developer.wordpress.org/themes/advanced-topics/child-themes/

Write your own CSS code after this comment block.
*/

/* === Responsive Video Player (CLS + white border fix) === */
.player {
    position: relative;
    width: 100% !important;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0 !important;
    overflow: hidden;
    background: #000; /* Prevents white flashes */
    margin: 0 auto;
    box-sizing: border-box;
    border: none !important;
}

.player iframe,
.player embed,
.player object {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent;
}

/* Clear out any extra divs injected inside the player */
.player > div {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Wrap containers around videos */
.video-container,
.video-wrapper,
.entry-content .player {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    border: none !important;
    overflow: hidden !important;
    box-shadow: none !important;
    background: transparent !important;
}

.entry-thumb img,
.post-thumbnail img,
.wp-post-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
