/* ==================== THUMBNAIL CAPTION CSS ==================== */
/* Drupal ka apna figcaption (data-caption se auto-generate hota hai) */

.img-sec figcaption {
    padding: 8px 5px;
    font-size: 14px;
    text-align: center;
    color: #333;
}

/* ==================== LIGHTBOX CSS ==================== */

.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    text-align: center;
}

.gl-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 80vh;
    margin-top: 5vh;
    border: 3px solid #fff;
    border-radius: 4px;
}

.gl-caption {
    color: #fff;
    padding: 10px;
    font-size: 16px;
}

.gl-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.gl-close:hover {
    color: #bbb;
}

.gl-prev,
.gl-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: #fff;
    font-weight: bold;
    font-size: 28px;
    user-select: none;
    background: rgba(0,0,0,0.4);
    border-radius: 4px;
}

.gl-prev {
    left: 20px;
}

.gl-next {
    right: 20px;
}

.gl-prev:hover,
.gl-next:hover {
    background: rgba(0,0,0,0.75);
}

@media (max-width: 600px) {
    .gl-content {
        max-width: 95%;
    }
    .gl-prev,
    .gl-next {
        font-size: 20px;
        padding: 10px;
    }
}
