.sgallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.sgallery-album {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.sgallery-album-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.sgallery-album-content {
    margin-bottom: 20px;
}

.sgallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.sgallery-item {
    position: relative;
    cursor: pointer;
}

.sgallery-item:hover {
    transform: translateY(-2px);
    transition: transform 0.2s;
}

.sgallery-item a {
    display: block;
    position: relative;
    text-decoration: none;
}

.sgallery-item img {
    width: 100%;
    height: auto;
    display: block;
    /* customization applied inline */
}

.sgallery-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 30px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0.8;
}

.sgallery-item:hover .sgallery-play-icon {
    opacity: 1;
}

/* Modal Styles */
.sgallery-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
}

.sgallery-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sgallery-modal-content img {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
}

.sgallery-modal-content iframe,
.sgallery-modal-content video {
    width: 100%;
    height: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: none;
}

.sgallery-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 100001;
}

.sgallery-modal-close:hover,
.sgallery-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}