.pscg-album-wrapper {
    max-width: 1100px;
    margin: 24px auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Classic layout */
.pscg-layout-classic .pscg-main-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.pscg-layout-classic .pscg-main-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.25s ease-out, opacity 0.15s ease-out;
}
.pscg-layout-classic .pscg-main-image:hover {
    transform: scale(1.01);
}
.pscg-main-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 10px;
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    border-radius: 999px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.15s ease-in-out, background 0.15s;
}
.pscg-main-prev { left: 10px; }
.pscg-main-next { right: 10px; }
.pscg-layout-classic .pscg-main-image-container:hover .pscg-main-nav {
    opacity: 1;
}
.pscg-main-nav:hover {
    background: rgba(0,0,0,0.8);
}
.pscg-main-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: #f9fafb;
    font-size: 13px;
    z-index: 2;
}
.pscg-main-counter {
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.85;
}
.pscg-main-caption {
    font-size: 16px;
    line-height: 1.5;
}
.pscg-thumbs-container {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.pscg-thumbs-container::-webkit-scrollbar {
    height: 5px;
}
.pscg-thumbs-container::-webkit-scrollbar-thumb {
    background: rgba(17,24,39,0.35);
    border-radius: 999px;
}
.pscg-thumb-wrapper {
    flex: 0 0 auto;
}
.pscg-thumb {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.55;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.pscg-thumb.is-active,
.pscg-thumb:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    outline: 2px solid #111827;
}

/* Grid layout */
.pscg-layout-grid .pscg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}
@media (max-width: 900px) {
    .pscg-layout-grid .pscg-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}
@media (max-width: 600px) {
    .pscg-layout-grid .pscg-grid {
        grid-template-columns: repeat(1, minmax(0,1fr));
    }
}
.pscg-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}
.pscg-grid-item .pscg-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    opacity: 1;
}
.pscg-grid-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 8px;
    font-size: 13px;
    color: #e5e7eb;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

/* Story layout */
.pscg-layout-story .pscg-story-slide {
    margin-bottom: 24px;
}
.pscg-layout-story .pscg-story-image {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    cursor: zoom-in;
}
.pscg-layout-story .pscg-story-caption {
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.6;
    color: #111827;
}

/* Lightbox */
.pscg-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.pscg-lightbox-content {
    position: relative;
    max-width: 96%;
    max-height: 96%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.pscg-lightbox-image-wrap {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.pscg-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}
.pscg-lightbox-caption {
    color: #e5e7eb;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    max-width: 90vw;
}
.pscg-lightbox-counter {
    color: #9ca3af;
    font-size: 11px;
    text-align: center;
}
.pscg-lightbox-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 28px;
    color: #f9fafb;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.7);
    line-height: 1;
    z-index: 100000;
}
.pscg-lightbox-close:hover {
    background: rgba(0,0,0,0.95);
}
.pscg-lightbox-nav {
    background: rgba(0,0,0,0.55);
    border: none;
    color: #f9fafb;
    font-size: 28px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.15s ease-in-out, transform 0.1s;
}
.pscg-lightbox-nav:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-1px);
}

/* Share button */
.pscg-share-btn {
    margin-top: 2px;
    padding: 3px 8px;
    font-size: 11px;
    border: none;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pscg-share-btn:hover {
    background: rgba(15,23,42,1);
}

@media (max-width: 600px) {
    .pscg-thumb {
        width: 64px;
        height: 64px;
    }
    .pscg-main-caption,
    .pscg-story-caption {
        font-size: 15px;
    }
}
