/* Gallery — [albums_grid] album cards + [album_gallery] image grid + lightbox. */

/* ---- shared hover overlay + badge (white rounded square on a red wash) ---- */
.album-card__cover::after,
.album-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(183, 31, 57, 0.69);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.album-card__cover:hover::after,
.album-photo:hover::after { opacity: 1; }

.album-card__zoom,
.album-photo__zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 5px;
    background: #fff;
    color: #141418;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.album-card__cover:hover .album-card__zoom,
.album-photo:hover .album-photo__zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.gallery-zoom-icon { width: 22px; height: 22px; }

/* ---- albums grid (listing) ---- */
.albums-grid__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 1024px) { .albums-grid__items { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 600px)  { .albums-grid__items { grid-template-columns: 1fr; } }

.albums-grid__empty {
    padding: 40px 0;
    font: 400 18px/1.5 "Noto Sans", sans-serif;
    color: #5a5e60;
}

.album-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding-bottom: 16px;
    background: #fff;
    border: 1px solid #b71f39;
    border-radius: 5px;
    overflow: hidden;
}
.album-card__cover {
    position: relative;
    align-self: stretch;          /* full-bleed cover, flush to the top + side borders */
    display: block;
    aspect-ratio: 359 / 254;
    overflow: hidden;
    background: #f1f1f1;
}
.album-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}
.album-card__cover:hover .album-card__img { transform: scale(1.05); }
.album-card__title {
    width: 100%;
    margin: 0;
    padding: 0 20px;
    text-align: center;
    font: 400 18px/1.35 "Noto Sans", sans-serif;
}
.album-card__title a {
    color: #111;
    text-decoration: none;
}
.album-card__title a:hover { color: #b71f39; }
.album-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;             /* keeps buttons aligned across a row of cards */
    padding: 13px 28px;
    border-radius: 5px;
    background: #b71f39;
    color: #fff;
    font: 500 14px/1 "Noto Sans", sans-serif;
    text-decoration: none;
    transition: background 0.2s ease;
}
.album-card__btn:hover { background: #6e1414; color: #fff; }
.gallery-arrow-icon { width: 16px; height: 16px; flex: 0 0 auto; }

/* ---- album gallery (single) ---- */
.album-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 1024px) { .album-gallery { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 600px)  { .album-gallery { grid-template-columns: 1fr; } }

.album-photo {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 5px;
    background: #f1f1f1;
    cursor: zoom-in;
}
.album-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}
.album-photo:hover .album-gallery__img { transform: scale(1.05); }
