/*
Theme Name: PUP Advocacy
Theme URI: 
Description: A child theme of Twenty Twenty-Five
Author: Ascent Media
Author URI: 
Template: twentytwentyfive
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baf
*/

/* Import parent theme styles */
@import url("../twentytwentyfive/style.css");

/* Custom styles */



:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

:where(.wp-site-blocks *:focus) {
	 outline-width: 0 !important; 
    outline-style: none !important;
}

:root :where(.wp-block-quote) {
	border-color: var(--wp--preset--color--accent-1);
}

/* Yellow bullets with black text */
.wp-block-list {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}

.wp-block-list li {
    position: relative;
    padding-left: 1.5em; /* Space for custom bullet */
    color: black; /* Ensure text stays black */
}

.wp-block-list li::before {
    content: "•"; /* Bullet character */
    color: var(--wp--preset--color--accent-1); /* Yellow color */
    position: absolute;
    left: 0;
    font-size: 1.2em; /* Make bullet slightly larger */
    line-height: 1;
}

/* Alternative approach using different bullet styles */
.wp-block-list.custom-bullets {
    list-style: none;
    padding-left: 0;
}

.wp-block-list.custom-bullets li {
    position: relative;
    padding-left: 1.5em;
    color: black;
}

/* Square bullets */
.wp-block-list.custom-bullets.square li::before {
    content: "■";
    color: var(--wp--preset--color--accent-1);
    position: absolute;
    left: 0;
}

/* Circle bullets */
.wp-block-list.custom-bullets.circle li::before {
    content: "●";
    color: var(--wp--preset--color--accent-1);
    position: absolute;
    left: 0;
}

/* Arrow bullets */
.wp-block-list.custom-bullets.arrow li::before {
    content: "▶";
    color: var(--wp--preset--color--accent-1);
    position: absolute;
    left: 0;
    font-size: 0.8em;
    top: 0.1em;
}

.wide-gallery {
	max-width: 100% !important;
}

/* YouTube Video & Video Embed Border Radius Styles */
/* Applies 10px border radius to all embedded YouTube videos and video elements */

/* Standard WordPress YouTube embeds */
.wp-block-embed-youtube iframe,
.wp-block-embed__wrapper iframe[src*="youtube"],
.wp-block-embed__wrapper iframe[src*="youtu.be"] {
    border-radius: 10px !important;
}

/* General YouTube iframe targeting */
iframe[src*="youtube.com"],
iframe[src*="youtu.be"] {
    border-radius: 10px !important;
}

/* WordPress embed blocks with YouTube */
.wp-block-embed.is-provider-youtube iframe,
.wp-embed-aspect-16-9 iframe,
.wp-has-aspect-ratio iframe {
    border-radius: 10px !important;
}

/* Legacy WordPress embeds */
.entry-content iframe[src*="youtube"],
.post-content iframe[src*="youtube"] {
    border-radius: 10px !important;
}

/* WordPress Video Block */
.wp-block-video video {
    border-radius: 10px !important;
}

/* All video elements (excluding cover/background videos) */
video:not(.wp-block-cover__video-background):not([class*="cover"]):not([class*="background"]):not([class*="hero"]) {
    border-radius: 10px !important;
}

/* Video containers */
.wp-block-video,
figure.wp-block-video {
    border-radius: 10px;
    overflow: hidden;
}

/* Ensure the container doesn't clip the border radius */
.wp-block-embed__wrapper,
.wp-block-embed.is-provider-youtube,
.wp-embed-aspect-16-9 {
    border-radius: 10px;
    overflow: hidden;
}

/* For responsive video containers */
.video-container iframe,
.video-container video,
.responsive-video iframe,
.responsive-video video {
    border-radius: 10px !important;
}

/* Additional targeting for common embed patterns */
.embed-youtube iframe,
.youtube-player iframe,
div[class*="youtube"] iframe,
div[class*="video"] video {
    border-radius: 10px !important;
}

/* WordPress Video Block with Poster - Custom Play Button */
.wp-block-video {
    position: relative;
}

.wp-block-video.has-custom-play-button {
    cursor: pointer;
}

.wp-block-video .custom-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background-color: var(--wp--preset--color--accent-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: auto;
}

.wp-block-video .custom-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.wp-block-video .custom-play-button .play-triangle {
    width: 0;
    height: 0;
    border-top: 32px solid transparent;
    border-bottom: 32px solid transparent;
    border-left: 48px solid white;
    margin-left: 8px;
}

/* Hide default video controls when showing custom play button */
.wp-block-video.has-custom-play-button video {
    pointer-events: none;
}

.wp-block-video.has-custom-play-button video::-webkit-media-controls {
    display: none;
}

.wp-block-video.has-custom-play-button video::-webkit-media-controls-enclosure {
    display: none;
}

/* Responsive play button */
@media (max-width: 768px) {
    .wp-block-video .custom-play-button {
        width: 120px;
        height: 120px;
    }
    
    .wp-block-video .custom-play-button .play-triangle {
        border-top: 24px solid transparent;
        border-bottom: 24px solid transparent;
        border-left: 36px solid white;
        margin-left: 6px;
    }
}

.wp-block-cover.home-hero-video {
    aspect-ratio: unset !important;
}

/* Also ensure the video fills properly */
.wp-block-cover.home-hero-video .wp-block-cover__video-background {
    aspect-ratio: unset !important;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

