/**
 * Artist Gallery Page Styles
 */



.gallery-header {
    text-align: center;
    margin-bottom: 24px;
    padding-top: 40px;
}

.gallery-header__title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: var(--font-weight-heading);
    color: var(--color-text);
    margin: 0 0 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gallery-header__subtitle {
    font-size: 18px;
    color: var(--color-accent, #A0415E);
    font-weight: 600;
    margin: 0 0 12px;
}

.gallery-header__desc {
    font-size: 15px;
    color: var(--color-text);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.gallery-section__count {
    font-size: 13px;
    color: var(--color-text);
    opacity: 0.5;
    margin: 0 0 20px;
    text-align: right;
}

/* Masonry-style Grid */
.gallery-grid {
    columns: 4;
    column-gap: 12px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #f5f5f5;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 12px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item__caption {
    opacity: 1;
}

/* Empty state */
.gallery-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text);
    opacity: 0.5;
    font-size: 16px;
}

/* Additional content */
.gallery-content {
    padding: 0 0 60px;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gallery-lightbox.is-active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.gallery-lightbox__close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.gallery-lightbox__prev,
.gallery-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    z-index: 2;
}

.gallery-lightbox__prev { left: 20px; }
.gallery-lightbox__next { right: 20px; }

.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox__img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox__img.is-loaded {
    opacity: 1;
}

.gallery-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-grid {
        columns: 3;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 40px 0 30px;
    }

    .gallery-hero__title {
        font-size: 28px;
    }

    .gallery-hero__subtitle {
        font-size: 15px;
    }

    .gallery-hero__desc {
        font-size: 14px;
    }

    .gallery-grid {
        columns: 2;
        column-gap: 8px;
    }

    .gallery-item {
        margin-bottom: 8px;
        border-radius: 6px;
    }

    .gallery-lightbox__prev { left: 8px; }
    .gallery-lightbox__next { right: 8px; }

    .gallery-lightbox__prev,
    .gallery-lightbox__next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        columns: 2;
    }
}
