/* Video gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.video-link {
    display: block;
    text-decoration: none;
    color: #fff;
}

.video-link img {
    width: 100%;
    height: auto;
    transition: filter 0.3s;
}

.video-link img:hover {
    filter: grayscale(100%);
}

.video-link span {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 1.2em;
}

.video-link iframe {
    display: none; /* Hide unexpected iframes in gallery links */
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.close-btn.visible {
    opacity: 1;
}

.frame-video-container {
    position: relative;
    width: 80%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
}

#vimeo-player {
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#vimeo-player.playing {
    display: block;
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    cursor: pointer;
}

.custom-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 1);
    display: flex;
    align-items: center;
    padding: 10px 20px 20px 20px;
    box-sizing: border-box;
    gap: 15px;
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-controls.visible {
    opacity: 1;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn svg {
    width: 100%;
    height: 100%;
    fill: #fff;
    transform: scale(2.4); /* Increase size by 40% */
    
}

.progress-bar {
    flex-grow: 1;
    height: 4px;
    background: #444;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: #fff;
    width: 0;
    transition: width 0.1s linear;
}

.close-btn {
    touch-action: manipulation; /* Improve touch responsiveness */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.control-btn {
    touch-action: manipulation; /* Improve touch responsiveness */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}
.progress-bar {
    touch-action: manipulation; /* Improve touch responsiveness */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

#fullscreen-enter, #fullscreen-exit {
    display: none; /* Ensure both icons are hidden by default */
}
#fullscreen-enter.active, #fullscreen-exit.active {
    display: block; /* Show only the active icon */
}