.mspg-gallery {
    margin: 20px 0;
}
.mspg-filter-section {
    margin-bottom: 25px;
    padding: 20px;
    background: transparent;
    border-radius: 8px;
}
.mspg-filter-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}
.mspg-tag-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.mspg-tag-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}
.mspg-tag-btn:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}
.mspg-tag-btn.mspg-active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}
.mspg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    min-height: 200px;
}
.mspg-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1;
}
.mspg-gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.mspg-gallery-item:hover .mspg-gallery-thumbnail {
    transform: scale(1.1);
}
.mspg-image-tag-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 10px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}
.mspg-gallery-item:hover .mspg-image-tag-overlay {
    opacity: 1;
}
.mspg-gallery-pagination {
    text-align: center;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.mspg-page-btn {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.mspg-page-btn:hover {
    background: #005177;
}
.mspg-page-info {
    font-weight: bold;
    font-size: 14px;
}
.mspg-lightbox {
    display: none;
    position: fixed !important;
    z-index: 2147483647 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
}
.mspg-lightbox.mspg-active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}
#mspg-lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.mspg-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}
.mspg-lightbox-close:hover {
    color: #ccc;
}
.mspg-lightbox-prev, .mspg-lightbox-next {
    position: absolute;
    top: 50%;
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
    z-index: 10000;
}
.mspg-lightbox-prev:hover, .mspg-lightbox-next:hover {
    color: #ccc;
}
.mspg-lightbox-prev { left: 20px; }
.mspg-lightbox-next { right: 20px; }
.mspg-lightbox-info {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 16px;
    background: rgba(0,0,0,0.7);
    padding: 10px 15px;
    border-radius: 5px;
}
.mspg-lightbox-download {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}
.mspg-lightbox-download:hover {
    background: #005177;
    color: white;
}
body.mspg-lightbox-open header,
body.mspg-lightbox-open [data-device] > header,
body.mspg-lightbox-open header[data-sticky],
body.mspg-lightbox-open .site-header,
body.mspg-lightbox-open #masthead,
body.mspg-lightbox-open .ct-header,
body.mspg-lightbox-open [data-id='header'] {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}