.gr-wp-gallery-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 28%),
        #020202;
    color: #fff;
}

.gr-wp-gallery-page .container {
    max-width: 1440px;
}

.gr-wp-gallery-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gr-wp-gallery-actions .btn {
    min-width: 126px;
    border-radius: 10px;
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.gr-wp-gallery-actions .btn:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.gr-wp-gallery-heading {
    max-width: 760px;
    margin: 0 auto;
}

.gr-wp-gallery-heading h1 {
    color: #fff;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 600;
    margin-bottom: 14px;
}

.gr-wp-gallery-heading p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
}

.gr-wp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.gr-wp-gallery-card {
    display: block;
    position: relative;
    text-decoration: none;
    color: #fff;
    border-radius: 18px;
    overflow: hidden;
    background: #0d0d0d;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gr-wp-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.36);
    color: #fff;
}

.gr-wp-gallery-thumb {
    display: block;
    position: relative;
    aspect-ratio: 0.82 / 1;
    overflow: hidden;
}

.gr-wp-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 0.28s ease;
    background: #111;
}

.gr-wp-gallery-card:hover .gr-wp-gallery-thumb img {
    transform: scale(1.04);
}

.gr-wp-gallery-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.24) 42%, rgba(0, 0, 0, 0.12) 100%);
}

.gr-wp-gallery-meta {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 14px 16px;
}

.gr-wp-gallery-title {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.gr-wp-gallery-file {
    display: block;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.76rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gr-wp-gallery-empty {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    color: #111;
    border: 0;
}

.gr-wp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, 0.96);
}

.gr-wp-lightbox[hidden] {
    display: none;
}

.gr-wp-lightbox-figure {
    max-width: min(94vw, 1500px);
    max-height: 92vh;
    margin: 0;
    text-align: center;
}

.gr-wp-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 22px 62px rgba(0, 0, 0, 0.48);
}

.gr-wp-lightbox-caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 14px;
    padding: 0 12px;
    text-align: center;
}

.gr-wp-lightbox-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.gr-wp-lightbox-file {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
}

.gr-wp-lightbox-close,
.gr-wp-lightbox-nav {
    position: absolute;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
}

.gr-wp-lightbox-close {
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.gr-wp-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 999px;
    font-size: 28px;
}

.gr-wp-lightbox-prev {
    left: 18px;
}

.gr-wp-lightbox-next {
    right: 18px;
}

body.gr-wp-lightbox-open {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .gr-wp-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .gr-wp-gallery-page .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .gr-wp-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gr-wp-gallery-title {
        font-size: 0.88rem;
    }

    .gr-wp-gallery-file {
        display: none;
    }

    .gr-wp-lightbox {
        padding: 16px;
    }

    .gr-wp-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .gr-wp-lightbox-prev {
        left: 10px;
    }

    .gr-wp-lightbox-next {
        right: 10px;
    }
}
