/* Project video play overlay on homepage quarry image */
.bde-image-16-238 {
    position: relative;
}

.bde-image-16-238 .lr-video-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.bde-image-16-238 .lr-video-play::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    transition: background 0.2s ease;
}

.bde-image-16-238 .lr-video-play:hover::before,
.bde-image-16-238 .lr-video-play:focus-visible::before {
    background: rgba(0, 0, 0, 0.35);
}

.bde-image-16-238 .lr-video-play__icon {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(132, 191, 64, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: 50% 50%;
    transition: transform 0.2s ease, background 0.2s ease;
    will-change: transform;
}

.bde-image-16-238 .lr-video-play:hover .lr-video-play__icon,
.bde-image-16-238 .lr-video-play:focus-visible .lr-video-play__icon {
    transform: scale(1.06);
    background: rgb(132, 191, 64);
}

.bde-image-16-238 .lr-video-play__icon svg {
    /* Optically centered play triangle (no layout margin that skews hover scale). */
    width: 28px;
    height: 28px;
    margin: 0;
    fill: #fff;
    transform: translateX(1.5px);
    transform-origin: center;
}

.bde-image-16-238 .lr-video-play:focus-visible {
    outline: 2px solid #84bf40;
    outline-offset: 4px;
}

/* Modal */
.lr-video-modal[hidden] {
    display: none !important;
}

.lr-video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lr-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.lr-video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lr-video-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lr-video-modal__close:hover,
.lr-video-modal__close:focus-visible {
    background: #fff;
}

.lr-video-modal__player {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    background: #000;
    vertical-align: middle;
}

body.lr-video-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .bde-image-16-238 .lr-video-play__icon {
        width: 56px;
        height: 56px;
    }

    .bde-image-16-238 .lr-video-play__icon svg {
        width: 22px;
        height: 22px;
    }
}
