/* Pagina fotografie: stesso breadcrumb e intestazione dell'elenco album. */
.gallery-detail-page {
    --gallery-accent: #6366f1;
}

.gallery-detail-page .gallery-breadcrumb {
    font-size: .83rem;
    --bs-breadcrumb-divider: '›';
}

.gallery-detail-page .gallery-breadcrumb a {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.gallery-detail-page .gallery-breadcrumb a:hover {
    color: var(--gallery-accent);
}

.gallery-detail-page .gallery-page-title {
    font-size: clamp(1.55rem, 2.5vw, 1.95rem);
    font-weight: 700;
    letter-spacing: -.035em;
}

.gallery-detail-page .gallery-heading p {
    font-size: .89rem;
}

/* Le colonne, i margini e la struttura card sono gestiti da Bootstrap 5. */
.gallery-photo-card {
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    background: var(--bs-body-bg);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.gallery-photo-card:hover {
    border-color: rgba(99, 102, 241, .45);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .06);
}

.gallery-photo-cover {
    display: block;
    overflow: hidden;
    background: var(--bs-tertiary-bg);
    aspect-ratio: 1 / 1;
}

.gallery-photo-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.gallery-photo-cover:hover img {
    transform: scale(1.035);
}

.gallery-photo-cover:focus-visible {
    outline: 3px solid var(--gallery-accent);
    outline-offset: -3px;
}

.gallery-photo-caption {
    padding: 12px 14px;
    color: var(--bs-body-color);
    font-size: .83rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .gallery-photo-caption { padding: 10px 11px; font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-photo-card, .gallery-photo-cover img { transition: none; }
}

/* AGGIUNTA: navigazione gallerie, isolata dagli stili originali */
.gallery-detail-page .gallery-albums-strip {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.gallery-detail-page .gallery-albums-strip-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: max-content;
    min-width: 100%;
    padding: 2px 0 8px;
}

.gallery-detail-page .gallery-albums-strip-item {
    display: inline-block;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 7px 12px;
    border-radius: 8px;
    color: var(--bs-body-color);
    background: var(--bs-tertiary-bg);
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.gallery-detail-page .gallery-albums-strip-item:hover {
    color: var(--gallery-accent);
}

.gallery-detail-page .gallery-albums-strip-item.is-current {
    color: #fff;
    background: var(--gallery-accent);
}

.gallery-detail-page .gallery-albums-strip-item:focus-visible {
    outline: 2px solid var(--gallery-accent);
    outline-offset: 2px;
}

