/* IPY Simply Grid Blog - 0.1.0 */

.ipy-simply-grid {
    display: grid;
    grid-template-columns: repeat(var(--ipy-grid-columns, 3), minmax(0, 1fr));
    gap: var(--ipy-grid-gap, 8px);
    width: 100%;
    margin: 0;
    padding: 0;
}

.ipy-sgb-item {
    margin: 0;
    padding: 0;
    min-width: 0;
}

.ipy-sgb-link {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    line-height: 0;
}

.ipy-sgb-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    object-fit: cover;
    transition: transform .18s ease;
}

.ipy-sgb-link:hover .ipy-sgb-image {
    transform: scale(1.015);
}

/* No captions are generated by this plugin. */

@media (max-width: 900px) {
    .ipy-simply-grid {
        grid-template-columns: repeat(
            min(var(--ipy-grid-columns, 3), 2),
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 600px) {
    .ipy-simply-grid {
        grid-template-columns: 1fr;
    }
}


.ipy-sgb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.ipy-sgb-lightbox.is-open {
    display: flex;
}

.ipy-sgb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.92);
}

.ipy-sgb-stage {
    position: relative;
    z-index: 2;
    max-width: 96vw;
    max-height: 94vh;
}

.ipy-sgb-large {
    display: block;
    max-width: 96vw;
    max-height: 94vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ipy-sgb-close,
.ipy-sgb-prev,
.ipy-sgb-next {
    position: absolute;
    z-index: 3;
    border: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.ipy-sgb-close {
    top: 12px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 36px;
    border-radius: 50%;
}

.ipy-sgb-prev,
.ipy-sgb-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 72px;
    font-size: 48px;
}

.ipy-sgb-prev { left: 12px; }
.ipy-sgb-next { right: 12px; }

.ipy-sgb-no-scroll {
    overflow: hidden;
}
