/* Joomla module: YouTube Channel RSS */

.mod-youtubechannel {
    width: 100%;
}

.mod-youtubechannel__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
}

.mod-youtubechannel--cols-1 .mod-youtubechannel__grid {
    grid-template-columns: 1fr;
}

.mod-youtubechannel--cols-2 .mod-youtubechannel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mod-youtubechannel--cols-3 .mod-youtubechannel__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mod-youtubechannel--cols-4 .mod-youtubechannel__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mod-youtubechannel__item {
    min-width: 0;
}

.mod-youtubechannel__thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #111;
    text-decoration: none;
}

.mod-youtubechannel__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .25s ease, opacity .25s ease;
}

.mod-youtubechannel__thumb:hover img,
.mod-youtubechannel__thumb:focus img {
    transform: scale(1.025);
    opacity: .9;
}

.mod-youtubechannel__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 42px;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    background: rgba(0, 0, 0, .72);
}

.mod-youtubechannel__play::after {
    content: "";
    position: absolute;
    left: 23px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid #fff;
}

.mod-youtubechannel__title {
    margin: 13px 0 0;
    padding: 0;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
}

.mod-youtubechannel__title a {
    color: inherit;
    text-decoration: none;
}

.mod-youtubechannel__title a:hover,
.mod-youtubechannel__title a:focus {
    text-decoration: underline;
}

.mod-youtubechannel__date {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.3;
    opacity: .7;
}

.mod-youtubechannel__error {
    margin: 0;
}

@media (max-width: 900px) {
    .mod-youtubechannel__grid,
    .mod-youtubechannel--cols-3 .mod-youtubechannel__grid,
    .mod-youtubechannel--cols-4 .mod-youtubechannel__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .mod-youtubechannel__grid,
    .mod-youtubechannel--cols-2 .mod-youtubechannel__grid,
    .mod-youtubechannel--cols-3 .mod-youtubechannel__grid,
    .mod-youtubechannel--cols-4 .mod-youtubechannel__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mod-youtubechannel__title {
        font-size: 18px;
    }
}


.mod-youtubechannel__channel-link {
    margin-top: 34px;
    text-align: center;
}

.mod-youtubechannel__channel-link a {
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
}

.mod-youtubechannel__channel-link a:hover,
.mod-youtubechannel__channel-link a:focus {
    text-decoration: underline;
}
