/* Responsive Grid */
.epoxy-yt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--mobile-cols, 1), 1fr);
    gap: 20px;
    margin: 20px 0;
}

@media (min-width: 768px) {
    .epoxy-yt-gallery-grid {
        grid-template-columns: repeat(var(--tablet-cols, 2), 1fr);
    }
}

@media (min-width: 1024px) {
    .epoxy-yt-gallery-grid {
        grid-template-columns: repeat(var(--desktop-cols, 3), 1fr);
    }
}

.epoxy-yt-gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid #F25022; /* Brand Orange */
}

.epoxy-yt-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.epoxy-yt-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.epoxy-yt-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.epoxy-yt-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(33, 112, 160, 0.8); /* Brand Blue with opacity */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.3s ease, transform 0.3s ease;
}

.epoxy-yt-gallery-item:hover .epoxy-yt-play-button {
    background: #F25022; /* Brand Orange on hover */
    transform: translate(-50%, -50%) scale(1.1);
}

.epoxy-yt-play-button svg {
    width: 30px;
    height: 30px;
    margin-left: 4px; /* Adjust optical alignment for play triangle */
}

.epoxy-yt-title {
    padding: 15px;
}

.epoxy-yt-title h4 {
    margin: 0;
    font-size: 16px;
    font-family: "Adelon Serial Bold", sans-serif;
    color: #2170A0; /* Brand Blue */
    line-height: 1.4;
}

/* Lightbox Styles */
.epoxy-yt-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epoxy-yt-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.epoxy-yt-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 10;
}

.epoxy-yt-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    line-height: 1;
}

.epoxy-yt-lightbox-close:hover {
    color: #F25022;
}

.epoxy-yt-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.epoxy-yt-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
