.video-home {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    -moz-transform: translateY(-50%) translateX(-50%);
    -ms-transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
    transform: translateY(-50%) translateX(-50%);
    overflow: hidden;
    background: no-repeat center center / cover;
}

/* History Page Styles */

/* Base line style */
.grid-history .horizontal-line {
    background-color: var(--antique-white);
    position: absolute;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
}

/* First item: Start middle, go down */
.grid-history:first-of-type .horizontal-line {
    height: 50%;
    top: 50%;
}

/* Last item: Start top, stop middle */
.grid-history:last-of-type .horizontal-line {
    height: 50%;
    top: 0;
}

/* Restore alignment lost from IDs */
.title-block,
.history-decription {
    align-self: center;
}

/* Fix for first row layout collapse */
.w-layout-grid.grid-history {
    grid-template-columns: 1fr 60px 1fr;
    /* Fixed width for middle column to prevent collapse */
}

.mid-line {
    min-width: 60px;
    /* Ensure middle column never collapses */
    position: relative;
    height: 100%;
    align-self: stretch;
}

/* Mobile/Tablet Layout (< 992px) */
@media screen and (max-width: 991px) {
    .w-layout-grid.grid-history {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .title-block,
    .mid-line,
    .history-decription {
        width: 100%;
    }

    /* Reordering for Odd rows */
    .mobile-first {
        order: -1;
    }

    .mobile-last {
        order: 1;
    }

    /* Center text on mobile */
    .title-history,
    .title-history.right {
        justify-content: center;
        text-align: center;
    }
}

/* Table Styles for Cookies Page */
.w-richtext table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.w-richtext table tr:nth-child(odd) {
    background-color: #fff;
}

.w-richtext table tr:nth-child(even) {
    background-color: #f7f5f2;
}

.w-richtext table tr:first-child {
    background-color: #303350;
    color: #fff;
    font-weight: bold;
}

.w-richtext table td {
    padding: 10px;
    border: none;
}

/* WordPress Figure override */
.w-richtext figure {
    max-width: 100% !important;
    width: 100%;
}