

/* Start:/local/components/custom/photo.cards/templates/.default/style.css?17912871046886*/
/* ==================== Grid ==================== */
.pc {
    width: 100%;
}

.pc__grid {
    display: grid;
    grid-template-columns: repeat(var(--pc-cols, 3), 1fr);
    grid-auto-rows: 1fr;
    gap: var(--pc-gap, 16px);
    align-items: stretch;
}

.pc__card {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f7f7;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pc__card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.pc__card:focus-visible {
    outline: 2px solid #4a90d9;
    outline-offset: 2px;
}

.pc__thumb {
    position: relative;
    flex: 0 0 auto;
    height: var(--pc-h, 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ececec;
}

.pc__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-position: center center;
    transition: transform 0.35s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* --- Fit modes --- */
.pc__img--fit-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pc__img--fit-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc__img--fit-fill {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.pc__img--fit-scale-down {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

.pc__img--fit-none {
    width: 100%;
    height: 100%;
    object-fit: none;
}

/* высота = контейнеру, ширина по пропорции (излишек обрезается) */
.pc__img--fit-height {
    width: auto;
    height: 100%;
    max-width: none;
    max-height: none;
    flex-shrink: 0;
}

/* ширина = контейнеру, высота по пропорции (излишек обрезается) */
.pc__img--fit-width {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    flex-shrink: 0;
}

.pc__card:hover .pc__img {
    transform: scale(1.04);
}

/* contain / scale-down / none — зум не нужен, фото и так целиком */
.pc__card:hover .pc__img--fit-contain,
.pc__card:hover .pc__img--fit-scale-down,
.pc__card:hover .pc__img--fit-none,
.pc__card:hover .pc__img--fit-height,
.pc__card:hover .pc__img--fit-width {
    transform: none;
}

.pc__title {
    flex: 1 1 auto;
    display: block;
    padding: 10px 12px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    background: #fff;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    text-align: center;
}

.pc__title--align-left {
    text-align: left;
}

.pc__title--align-center {
    text-align: center;
}

.pc__title--align-right {
    text-align: right;
}

.pc__count {
    text-align: center;
    padding: 16px 0;
    color: #888;
    font-size: 14px;
}

.pc-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .pc__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pc__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pc__thumb {
        height: 170px;
    }

    .pc__title {
        font-size: 13px;
        padding: 8px 10px 10px;
    }
}

@media (max-width: 480px) {
    .pc__grid {
        grid-template-columns: 1fr 1fr;
        gap: calc(var(--pc-gap, 16px) / 2);
    }

    .pc__thumb {
        height: 130px;
    }

    .pc__title {
        font-size: 12px;
        min-height: 2.6em;
    }
}

/* ==================== Lightbox ==================== */
.pc-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
}

.pc-lb--active {
    display: flex;
}

.pc-lb__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    flex-shrink: 0;
}

.pc-lb__caption {
    color: #eee;
    font-size: 15px;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-lb__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pc-lb__download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.pc-lb__download:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}

.pc-lb__download-icon {
    flex-shrink: 0;
}

.pc-lb__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.pc-lb__close:hover {
    opacity: 1;
}

.pc-lb__stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 70px 20px;
    min-height: 0;
}

.pc-lb__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    -webkit-user-drag: none;
}

.pc-lb__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    z-index: 2;
    padding: 12px 16px;
    line-height: 1;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}

.pc-lb__nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.pc-lb__nav--prev {
    left: 12px;
}

.pc-lb__nav--next {
    right: 12px;
}

.pc-lb__counter {
    text-align: center;
    color: #888;
    font-size: 13px;
    padding-bottom: 16px;
    flex-shrink: 0;
}

/* --- Lightbox mobile --- */
@media (max-width: 768px) {
    .pc-lb__bar {
        padding: 10px 12px;
    }

    .pc-lb__caption {
        font-size: 13px;
    }

    .pc-lb__download {
        padding: 7px 12px;
        font-size: 13px;
    }

    .pc-lb__download span {
        display: none;
    }

    .pc-lb__stage {
        padding: 10px 10px 16px;
    }

    .pc-lb__nav {
        font-size: 32px;
        padding: 8px 10px;
    }

    .pc-lb__nav--prev {
        left: 4px;
    }

    .pc-lb__nav--next {
        right: 4px;
    }

    .pc-lb__close {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .pc-lb__nav {
        display: none;
    }

    .pc-lb__stage {
        padding: 10px 4px 12px;
    }

    .pc-lb__download {
        padding: 6px 10px;
    }
}

/* End */
/* /local/components/custom/photo.cards/templates/.default/style.css?17912871046886 */
