/* ==========================================================
   АкваПрофі
   video-full.css
   ========================================================== */
.gallery-header {
    text-align: center;
    margin-bottom: 48px;
}

.gallery-header h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.video-gallery {
    padding: 20px 0;
    background: #ffffff;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-top: 50px;
}
.video-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}
.video-card:hover {
    transform: translateY(-4px);
    border-color: #ff6f00;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .10);
}
.video-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.video-thumb {
    position: relative;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}
.video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.video-card:hover .video-thumb img {
    transform: scale(1.04);
}
.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ffffff;
    background: rgba(255, 111, 0, .92);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .25s ease,
    background .25s ease;
}
.video-card:hover .video-play {
    transform: translate(-50%, -50%) scale(1.08);
}
.video-title {
    padding: 18px 20px 22px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    color: #222;
}
.video-empty {
    text-align: center;
    color: #777;
    font-size: 1.1rem;
    padding: 60px 20px;
}
/* ==========================================================
   Модальне вікно
   ========================================================== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease,
    visibility .25s ease;
}
.video-modal.active {
    opacity: 1;
    visibility: visible;
}
.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .85);
}
.video-modal-content {
    position: relative;
    z-index: 2;
    width: min(92vw, 1100px);
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.video-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: #ffffff;
    background: rgba(0, 0, 0, .55);
    transition: background .25s ease,
    transform .25s ease;
}
.video-modal-close:hover {
    background: #ff6f00;
    transform: scale(1.08);
}
/* ==========================================================
   Адаптивність
   ========================================================== */
@media (max-width: 992px) {
    .video-gallery {
        padding: 60px 0;
    }
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }
}
@media (max-width: 768px) {
    .video-gallery {
        padding: 50px 0;
    }
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 36px;
    }
    .video-title {
        padding: 16px;
        font-size: 1rem;
    }
    .video-play {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .video-modal-content {
        width: 96vw;
        border-radius: 10px;
    }
    .video-modal-close {
        width: 38px;
        height: 38px;
        font-size: 24px;
        top: 8px;
        right: 8px;
    }
}
@media (max-width: 480px) {
    .video-gallery {
        padding: 40px 0;
    }
    .video-grid {
        gap: 16px;
    }
    .video-title {
        font-size: .95rem;
    }
}