/* ---- backUrl ---- */
.pg-back {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #919191;
    font-size: 14px;
    font-family: "Open Sans", Arial, sans-serif;
    margin-bottom: 25px;
    transition: color 0.2s;
}

.pg-back:hover {
    color: #555;
}

/* Стрелка назад */
.pg-back__arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 34px;
    height: 8px;
    flex-shrink: 0;
    margin-right: 8px;
}

.pg-back__arrow-icon {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    transform: rotate(180deg);
    color: #919191;
    transition: color 0.2s;
}

.pg-back:hover .pg-back__arrow-icon {
    color: #555;
}

/* Линия стрелки — удлиняется при hover */
.pg-back__arrow-line {
    background: #919191;
    height: 2px;
    position: absolute;
    left: 1px;
    top: 3px;
    right: calc(100% - 18px);
    transition: right 0.5s ease;
}

.pg-back:hover .pg-back__arrow-line {
    right: calc(100% - 34px);
}

.pg-back__text {
    padding-left: 0;
}

/* ---- Сетка альбомов ---- */
.pg-albums {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pg-albums__item {
    list-style: none;
}

.pg-albums__item::before,
.pg-albums__item::after {
    display: none;
    content: none;
}

.pg-albums__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ---- Карточка альбома ---- */
.pg-albums__cover {
    position: relative;
    padding-top: 64.6%;
    overflow: hidden;
    background: #0d1e35;
    border-radius: 4px;
    cursor: pointer;
}

/* Изображение как span с background */
.pg-albums__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    border-radius: 4px;
    transition: transform 0.4s ease;
}

.pg-albums__link:hover .pg-albums__img {
    transform: scale(1.05);
}

.pg-albums__img--placeholder {
    background: linear-gradient(145deg, #1e3a5f 0%, #0d2240 100%);
}

/* Постоянный градиент снизу */
.pg-albums__cover::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 51%;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Затемнение при hover */
.pg-albums__cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s ease;
    pointer-events: none;
    border-radius: 4px;
    z-index: 2;
}

.pg-albums__link:hover .pg-albums__cover::before {
    background: rgba(0, 0, 0, 0.35);
}

/* ---- Текстовый блок ---- */
.pg-albums__info {
    position: absolute;
    bottom: 26px;
    left: 31px;
    right: 65px;
    z-index: 3;
}

/* Счётчик фото */
.pg-albums__count {
    font-size: 13px;
    font-family: "Open Sans", Arial, sans-serif;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    min-height: 1em;
}

.pg-albums__title-row {
    display: flex;
    align-items: flex-end;
    position: relative;
}

/* Название альбома */
.pg-albums__name {
    font-size: 16px;
    font-weight: 700;
    font-family: "Open Sans", Arial, sans-serif;
    color: #fff;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

/* ---- Стрелка вперёд — arrow-all ---- */
.pg-albums__arrow {
    position: absolute;
    right: -33px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 8px;
    flex-shrink: 0;
}

.pg-albums__arrow-icon {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    color: #fff;
}

.pg-albums__arrow-line {
    background: #fff;
    height: 2px;
    position: absolute;
    right: 1px;
    top: 3px;
    left: calc(100% - 18px);
    transition: left 0.5s ease;
}

.pg-albums__link:hover .pg-albums__arrow-line {
    left: calc(100% - 34px);
}

/* ---- Состояния ---- */
.pg-empty {
    color: #888;
    font-size: 15px;
}

/* ---- Адаптив ---- */
@media (max-width: 991px) {
    .pg-albums { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .pg-albums { grid-template-columns: 1fr; }
}