.sbd-album-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.sbd-album-title {
    text-align: center;
    margin-bottom: 20px;
}

.sbd-album-cover img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.sbd-album-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.sbd-album-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}


.sbd-gallery.default {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sbd-gallery.default .item {
    width: 120px;
    height: 120px;
}

.sbd-gallery.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 120px;
    gap: 10px;
}

.sbd-gallery .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* GRID SIZE */
.w-1 { grid-column: span 1; }
.w-2 { grid-column: span 2; }
.w-3 { grid-column: span 3; }

.h-1 { grid-row: span 1; }
.h-2 { grid-row: span 2; }
.h-3 { grid-row: span 3; }


.sbd-album-gallery.layout-default {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sbd-album-gallery.layout-default .sbd-album-item {
    width: 120px;
    height: 120px;
}

.sbd-album-gallery.layout-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 120px;
    gap: 10px;
    margin-top: 25px !important;
}

.sbd-album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SIZE */
.w-1 { grid-column: span 1; }
.w-2 { grid-column: span 2; }
.w-3 { grid-column: span 3; }

.h-1 { grid-row: span 1; }
.h-2 { grid-row: span 2; }
.h-3 { grid-row: span 3; }

.sbd-album-gallery.layout-default {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sbd-album-gallery.layout-default .sbd-album-item {
    width: 240px;
    height: 240px;
}

.sbd-album-gallery.layout-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 120px;
    gap: 10px;
}

.sbd-album-item {
    overflow: hidden;
}

.sbd-album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SIZE CONTROL */
.w-1 { grid-column: span 1; }
.w-2 { grid-column: span 2; }
.w-3 { grid-column: span 3; }
.w-4 { grid-column: span 4; }

.h-1 { grid-row: span 1; }
.h-2 { grid-row: span 2; }
.h-3 { grid-row: span 3; }
.h-4 { grid-row: span 4; }





/* cursor pointer */
.sbd-album-gallery img {
    cursor: pointer;
}

/* overlay */
.sbd-glightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 999999;
}

.sbd-glightbox.active {
    opacity: 1;
    visibility: visible;
}

/* inner */
.sbd-glightbox-inner {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BIG IMAGE */
.sbd-glightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    transform: scale(0.85);
    transition: 0.25s ease;
}

.sbd-glightbox.active img {
    transform: scale(1);
}

/* close */
.sbd-glightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* next prev buttons */
.sbd-prev,
.sbd-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 45px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.sbd-prev { left: -60px; }
.sbd-next { right: -60px; }

.sbd-prev:hover,
.sbd-next:hover {
    color: #ffcc00;
}


/*all gallery show*/

.sbd-all-albums {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.sbd-album-card {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
}

.sbd-album-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sbd-album-card h3 {
    padding: 10px;
    font-size: 16px;
    text-align: center;
}

.sbd-album-card:hover {
    transform: scale(1.05);
}