/* Copper Temple dynamic YouTube gallery */

.copper-youtube {
    width: 100%;
}

.copper-youtube-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 32px;
    background: #000;
    overflow: hidden;
}

.copper-youtube-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.copper-youtube-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 22px;
}

.copper-youtube-card {
    min-width: 0;
}

.copper-youtube-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    background: #eee;
    overflow: hidden;
    cursor: pointer;
}

.copper-youtube-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.copper-youtube-thumb:hover img {
    transform: scale(1.025);
}

.copper-youtube-thumb:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.copper-youtube-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 40px;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    background: rgba(0, 0, 0, .72);
    pointer-events: none;
}

.copper-youtube-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #fff;
}

.copper-youtube-title {
    margin: 11px 0 0;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    color: inherit;
}

.copper-youtube-actions {
    margin-top: 38px;
    text-align: center;
}

.copper-youtube-more {
    min-height: 44px;
    padding: 11px 26px;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.copper-youtube-more:hover {
    opacity: .8;
}

.copper-youtube-more:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.copper-youtube-more:disabled {
    opacity: .55;
    cursor: wait;
}

.copper-youtube-status {
    margin: 24px 0;
    text-align: center;
}

@media (max-width: 900px) {
    .copper-youtube-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .copper-youtube-player {
        margin-bottom: 24px;
    }

    .copper-youtube-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .copper-youtube-actions {
        margin-top: 30px;
    }
}