.grc-client-area,
.grc-gallery-wrap,
.grc-upload-form,
.grc-login-wrap {
    box-sizing: border-box;
}

.grc-gallery-wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    transform: none;
    overflow: visible;
}

.grc-gallery-wrap *,
.grc-gallery-wrap *::before,
.grc-gallery-wrap *::after {
    box-sizing: border-box;
}

.grc-box {
    padding: 14px 16px;
    margin: 0 0 18px;
    border-radius: 12px;
    background: #f5f5f5;
    border: 1px solid #e3e3e3;
}

.grc-success {
    background: #edf9f1;
    border-color: #b9e5c7;
}

.grc-error {
    background: #fff0f0;
    border-color: #f0b6b6;
}

.grc-warning {
    background: #fff8e6;
    border-color: #f0d690;
}

.grc-user-box {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.grc-upload-form {
    margin: 24px 0;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.grc-upload-form h3 {
    margin-top: 0;
}

.grc-field {
    margin-bottom: 18px;
}

.grc-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
}

.grc-field input[type="text"],
.grc-field input[type="file"],
.grc-field select,
.grc-field textarea,
.grc-login-wrap input[type="text"],
.grc-login-wrap input[type="password"] {
    width: 100%;
    max-width: 760px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 16px;
    background: #fff;
}

.grc-help {
    margin: 6px 0 0;
    color: #666;
    font-size: 14px;
}

.grc-button,
.grc-upload-form button,
.grc-login-wrap input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    background: #222;
    color: #fff;
    text-decoration: none;
}

.grc-button:hover,
.grc-upload-form button:hover,
.grc-login-wrap input[type="submit"]:hover {
    opacity: .86;
}

.grc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}

.grc-filter {
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    padding: 10px 16px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

.grc-filter.is-active,
.grc-filter:hover {
    background: #222;
    color: #fff;
    border-color: #222;
}

.grc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.grc-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #f2f2f2;
    border: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    transition: transform .2s ease, opacity .2s ease;
}

.grc-card.is-hidden {
    display: none;
}

.grc-card:hover {
    transform: translateY(-3px);
}

.grc-card-link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.grc-card-image {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f2f2f2;
}

.grc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.grc-card:hover .grc-card-image img,
.grc-card-link:focus .grc-card-image img {
    transform: scale(1.04);
}

.grc-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #777;
}

.grc-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.78) 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.grc-card:hover .grc-card-overlay,
.grc-card-link:focus .grc-card-overlay,
.grc-card-link:focus-visible .grc-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.grc-card-link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: -6px;
}

.grc-card-title {
    display: block;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 800;
}

.grc-card-meta {
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.grc-location {
    display: block;
    margin: 0;
    font-weight: 700;
}

.grc-card-desc {
    display: block;
    color: rgba(255,255,255,.88);
    font-size: 14px;
    line-height: 1.35;
}

.grc-mini-list {
    display: grid;
    gap: 12px;
}

.grc-mini-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

.grc-mini-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: #f1f1f1;
}

@media (max-width: 1200px) {
    .grc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .grc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .grc-grid {
        grid-template-columns: 1fr;
    }

    .grc-upload-form {
        padding: 18px;
    }
}

.grc-single-meta {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f7f7f7;
    border: 1px solid #e7e7e7;
}

.grc-single-meta p {
    margin: 4px 0;
}

.grc-single-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.grc-single-gallery a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #f2f2f2;
}

.grc-single-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 980px) {
    .grc-single-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .grc-single-gallery {
        grid-template-columns: 1fr;
    }
}


.grc-lightbox-open {
    overflow: hidden;
}

.grc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    color: #fff;
}

.grc-lightbox.is-open {
    display: block;
}

.grc-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
}

.grc-lightbox-dialog {
    position: absolute;
    inset: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 24px;
    align-items: stretch;
    max-width: 1500px;
    margin: 0 auto;
}

.grc-lightbox-media {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.04);
    border-radius: 18px;
    overflow: hidden;
}

.grc-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.grc-lightbox-info {
    align-self: stretch;
    overflow: auto;
    padding: 28px;
    border-radius: 18px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
}

.grc-lightbox-category {
    margin: 0 0 10px;
    color: rgba(255,255,255,.75);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.grc-lightbox-title {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.1;
}

.grc-lightbox-location {
    margin: 0 0 18px;
    color: rgba(255,255,255,.9);
    font-weight: 700;
}

.grc-lightbox-description {
    color: rgba(255,255,255,.88);
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-line;
}

.grc-lightbox-counter {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.55);
    font-size: 13px;
    font-weight: 700;
}

.grc-lightbox-close,
.grc-lightbox-nav {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: rgba(255,255,255,.16);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.grc-lightbox-close:hover,
.grc-lightbox-nav:hover,
.grc-lightbox-close:focus-visible,
.grc-lightbox-nav:focus-visible {
    background: rgba(255,255,255,.28);
}

.grc-lightbox-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 34px;
    line-height: 1;
}

.grc-lightbox-nav {
    top: 50%;
    width: 52px;
    height: 72px;
    margin-top: -36px;
    border-radius: 14px;
    font-size: 52px;
    line-height: 1;
}

.grc-lightbox-prev {
    left: 14px;
}

.grc-lightbox-next {
    right: 14px;
}

.grc-lightbox-nav[hidden],
.grc-lightbox-counter[hidden],
.grc-lightbox-category[hidden],
.grc-lightbox-title[hidden],
.grc-lightbox-location[hidden],
.grc-lightbox-description[hidden] {
    display: none !important;
}

@media (max-width: 980px) {
    .grc-lightbox-dialog {
        inset: 18px;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 14px;
    }

    .grc-lightbox-info {
        max-height: 34vh;
        padding: 18px;
    }

    .grc-lightbox-nav {
        width: 44px;
        height: 60px;
        font-size: 44px;
    }
}

@media (max-width: 620px) {
    .grc-gallery-wrap {
        padding-left: 10px;
        padding-right: 10px;
    }

    .grc-lightbox-dialog {
        inset: 10px;
    }

    .grc-lightbox-close {
        top: 8px;
        right: 8px;
    }

    .grc-lightbox-prev {
        left: 8px;
    }

    .grc-lightbox-next {
        right: 8px;
    }
}
