/* Gallery wrapper */
.myndbond-gallery-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* Gallery grid */
.myndbond-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, calc((100% - 24px) / 3));
}


/* 1 column */
.myndbond-grid.myndbond-col-1 {
    grid-template-columns: 100%;
}


/* 2 columns */
.myndbond-grid.myndbond-col-2 {
    grid-template-columns: repeat(2, calc((100% - 12px) / 2));
}


/* 3 columns */
.myndbond-grid.myndbond-col-3 {
    grid-template-columns: repeat(3, calc((100% - 24px) / 3));
}


/* 4 columns */
.myndbond-grid.myndbond-col-4 {
    grid-template-columns: repeat(4, calc((100% - 36px) / 4));
}


/* Gallery item */
.myndbond-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    background: #111;
    aspect-ratio: 16 / 9;
}


/* Gallery image */
.myndbond-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


/* Gallery image hover */
.myndbond-item:hover img {
    transform: scale(1.05);
    opacity: 0.75;
}


/* Play button */
.myndbond-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}


/* Play button icon */
.myndbond-play-btn svg {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
    transition: transform 0.2s ease;
}


/* Play button hover */
.myndbond-item:hover .myndbond-play-btn svg {
    transform: scale(1.12);
}


/* Thumbnail placeholder */
.myndbond-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Pagination */
.myndbond-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    flex-wrap: wrap;
}


/* Pagination button */
.myndbond-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    line-height: 1;
}


/* Pagination button hover */
.myndbond-page-btn:hover {
    background: #f0f0f0;
    border-color: #999;
    color: #111;
}


/* Active pagination button */
.myndbond-page-btn.active {
    background: #222;
    border-color: #222;
    color: #fff;
    pointer-events: none;
}


/* Lightbox */
.myndbond-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Lightbox overlay */
.myndbond-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}


/* Lightbox inner */
.myndbond-lightbox-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    padding: 20px 40px;
    box-sizing: border-box;
}


/* Lightbox video frame wrapper */
.myndbond-lb-frame-wrap {
    flex: 1;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}


/* Lightbox iframe */
.myndbond-lb-frame-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}


/* Lightbox close button */
.myndbond-lb-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 3;
}


/* Close button hover */
.myndbond-lb-close:hover {
    background: rgba(255, 255, 255, 0.28);
}


/* No posts message */
.myndbond-no-posts {
    text-align: center;
    color: #888;
    padding: 40px 0;
}


/* Tablet / mobile */
@media (max-width: 768px) {

    .myndbond-grid.myndbond-col-3,
    .myndbond-grid.myndbond-col-4 {
        grid-template-columns: repeat(2, calc((100% - 12px) / 2));
    }

    .myndbond-lightbox-inner {
        padding: 10px 16px;
    }

}


/* Small mobile */
@media (max-width: 480px) {

    .myndbond-grid,
    .myndbond-grid.myndbond-col-2,
    .myndbond-grid.myndbond-grid-col-3,
    .myndbond-grid.myndbond-col-4 {
        grid-template-columns: 100%;
    }

}