/* Import Google font 'Lato' for use throughout the video block */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;700&display=swap');

/* Import TT Ramillas font for headings */
@font-face{
    font-family: "TT Ramillas W03 Regular";
    src: url("../../fonts/311f6b683b69b2e481bec0dc7c27d412.eot");
    src: url("../../fonts/311f6b683b69b2e481bec0dc7c27d412.eot?#iefix")format("embedded-opentype"),
        url("../../fonts/311f6b683b69b2e481bec0dc7c27d412.woff")format("woff"),
        url("../../fonts/311f6b683b69b2e481bec0dc7c27d412.woff2")format("woff2"),
        url("../../fonts/311f6b683b69b2e481bec0dc7c27d412.ttf")format("truetype"),
        url("../../fonts/311f6b683b69b2e481bec0dc7c27d412.svg#TT Ramillas W03 Regular")format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/*------------------------------
  WordPress Reset & Overrides
------------------------------*/
/* Reset container constraints */
.wp-site-blocks .wp-block-post-content,
.entry-content,
.post-content,
.wp-site-blocks > * {
    max-width: none !important;
}

/* Reset block spacing */
.wp-site-blocks > * + *,
.wp-block-post-content > * + *,
.wp-block-post-content > * + .wp-block-acf-segib20_video_1 {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    margin-top: 0 !important;
}

/* Block wrapper reset */
.wp-block-acf-segib20_intro_banner,
.wp-block-acf-segib20_video_1 {
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

/* Force remove any gap between blocks */
.segib20_intro_banner + .segib20_video_1,
.wp-block-acf-segib20_intro_banner + .wp-block-acf-segib20_video_1 {
    margin-top: -1px !important; /* Small negative margin to prevent subpixel rendering gaps */
}

/* Ensure all nested elements also have no top spacing */
.segib20_video_1 *,
.segib20_video_1__wrapper * {
    margin-top: 0;
    padding-top: 0;
}

/*------------------------------
  Main Container Styles
------------------------------*/
.segib20_video_1 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 40px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    font-display: swap; /* Ensure text remains visible during webfont load */
}

/*------------------------------
  Video Wrapper & Elements
------------------------------*/
/* Video container with aspect ratio */
.segib20_video_1__wrapper {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    cursor: pointer;
    padding: 0;
    display: block;
    box-sizing: border-box;
}

/* Video and poster elements positioning */
.segib20_video_1__snippet,
.segib20_video_1__main,
.segib20_video_1__poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*------------------------------
  Content Elements
------------------------------*/
/* Content container */
.segib20_video_1__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Main heading */
.segib20_video_1__text_1 {
    color: var(--segib20-black) !important;
    font-family: 'Lato', sans-serif;
    font-size: clamp(60px, 8vw, 120px);
    font-weight: 700;
    line-height: 1;
    margin: 0 0 40px 0;
    text-align: center;
    max-width: var(--segib20-content-width);
    width: 100%;
}

/* Secondary heading */
.segib20_video_1__text_2 {
    color: var(--segib20-white) !important;
    font-family: 'Lato', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 140px 0;
    text-align: center;
    width: 100%;
}

/* Body text */
.segib20_video_1__text_3 {
    color: var(--segib20-black) !important;
    font-family: 'Lato', sans-serif;
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 400;
    line-height: 1.6;
    max-width: var(--segib20-content-width);
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

/*------------------------------
  Play Button Styles
------------------------------*/
/* Play button styling */
.segib20_video_1__play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Play button triangle icon */
.segib20_video_1__play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #000;
}

/* Play button hover effect */
.segib20_video_1__play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(255, 255, 255, 1);
}

/*------------------------------
  Accessibility
------------------------------*/
/* Screen reader text */
.screen-reader-text,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
.segib20_video_1 a:focus,
.segib20_video_1 button:focus {
    outline: 3px solid #000000;
    outline-offset: 2px;
}

/*------------------------------
  Responsive Styles
------------------------------*/
/* Large Desktop (up to 1440px) */
@media (max-width: 1440px) {
    .segib20_video_1 {
        width: calc(100% - (var(--segib20-padding) * 2));
        margin: 0 var(--segib20-padding);
    }
}

/* Tablet/Small Desktop (up to 991px) */
@media screen and (max-width: 991px) {
    .segib20_video_1 {
        /* Force full width */
        width: 100vw !important;
        max-width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        /* Reset side margins/paddings */
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-top:30px;
        padding-bottom:30px;
    }

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

    .segib20_video_1__content {
        gap: 20px;
    }

    .segib20_video_1__text_1,
    .segib20_video_1__text_2,
    .segib20_video_1__text_3 {
        margin-bottom: 20px;
    }

    /* Reduce play button size */
    .segib20_video_1__play-button {
        width: 70px;
        height: 70px;
        background-color: rgba(255, 255, 255, 0.9);
    }

    .segib20_video_1__play-button::before {
        border-width: 12px 0 12px 20px;
    }
}

/* Mobile (up to 480px) */
@media screen and (max-width: 480px) {
    .segib20_video_1 {
        padding: 10px 0;
    }

    .segib20_video_1__play-button {
        width: 60px;
        height: 60px;
    }

    .segib20_video_1__play-button::before {
        border-width: 10px 0 10px 16px;
    }
}

/* Touch devices */
@media (hover: none) {
    .segib20_video_1__play-button {
        background-color: rgba(255, 255, 255, 0.9);
        -webkit-tap-highlight-color: transparent;
    }
    
    .segib20_video_1__play-button:active {
        transform: translate(-50%, -50%) scale(0.95);
    }
}