
    
  
/* Galleria fotografica - Bootstrap 5: 2 colonne da XL, 1 sotto XL. */
.gallery-page {
    --gallery-accent: #6366f1;
}

.gallery-breadcrumb {
    font-size: .83rem;
    --bs-breadcrumb-divider: '›';
}

.gallery-breadcrumb a {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.gallery-breadcrumb a:hover { color: var(--gallery-accent); }

.gallery-page-title {
    font-size: clamp(1.55rem, 2.5vw, 1.95rem);
    font-weight: 700;
    letter-spacing: -.035em;
}

.gallery-heading p { font-size: .89rem; }

/* La disposizione e le spaziature di base sono gestite da Bootstrap. */
.gallery-album {
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.gallery-album:hover {
    border-color: rgba(99, 102, 241, .45);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .06);
    color: var(--bs-body-color);
}

.gallery-album:focus-visible {
    outline: 3px solid var(--gallery-accent);
    outline-offset: 3px;
}

.gallery-album-image { background: var(--bs-tertiary-bg); }

.gallery-album-image img {
    display: block;
    min-height: 175px;
    object-fit: cover;
    aspect-ratio: 1;
    transition: transform .3s ease;
}

.gallery-album:hover .gallery-album-image img { transform: scale(1.025); }

.gallery-album .card-body { padding: 17px 18px; }

.gallery-album-title {
    font-size: 1.02rem;
    line-height: 1.35;
    font-weight: 650;
    color: var(--bs-heading-color);
    overflow-wrap: anywhere;
}

.gallery-album-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: .83rem;
    line-height: 1.5;
}

.gallery-album-meta {
    color: var(--bs-secondary-color);
    font-size: .74rem;
    line-height: 1.35;
}

.gallery-album-meta span { white-space: nowrap; }
.gallery-album-arrow { color: var(--gallery-accent); }

/* Mobile: foto sopra, contenuto sotto, senza cambiare le card Bootstrap. */
@media (max-width: 575.98px) {
    .gallery-album-image img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .gallery-album .card-body { padding: 15px 16px; }
    .gallery-album-description { -webkit-line-clamp: 4; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-album, .gallery-album-image img { transition: none; }
}

