/* ==========================================================================
   SSV College — Gallery page
   File: css/Gallery.css   (linked from Gallery.aspx through the "head" placeholder)

   Load order on Gallery.aspx: site-modern.css (tokens, buttons, .ssv-card, section heads)
   → css/AboutUs.css (shared .ssv-page-banner / .ssv-crumbs used by the hero)
   → this file (album cards + photo thumbnails only).
   No design tokens are redeclared here — they come from site-modern.css's :root block.
   Everything is prefixed "ssv-" and lives under ".ssv-scope".

   Contents
     1. Album cards (rptAlbums)
     2. Photo thumbnails (rptIndividualPhotos)
     3. Reduced motion
   ========================================================================== */


/* 1. ALBUM CARDS -------------------------------------------------------------
   Image bleeds to the card edge, so padding moves off .ssv-card onto the body. */
.ssv-album-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    overflow: hidden;
    color: inherit;
}

    .ssv-album-card:hover,
    .ssv-album-card:focus {
        color: inherit;
        text-decoration: none;
    }

.ssv-album-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--border);
}

    .ssv-album-card__media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s var(--ease);
    }

.ssv-album-card:hover .ssv-album-card__media img {
    transform: scale(1.06);
}

.ssv-album-card__view {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: rgba(11, 37, 69, .85);
    color: #fff;
    font: 600 .78rem/1 var(--font-body);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.ssv-album-card:hover .ssv-album-card__view {
    opacity: 1;
    transform: none;
}

.ssv-album-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.ssv-album-card__title {
    margin-bottom: .5rem;
    font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);
    color: var(--primary);
    overflow-wrap: anywhere;
}

.ssv-album-card__date {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: .35rem;
    margin-bottom: .75rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    font: 600 .75rem/1 var(--font-body);
    color: var(--muted);
    white-space: nowrap;
}

.ssv-album-card__desc {
    margin: 0;
    font-size: .92rem;
    line-height: 1.65;
    color: #334155;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* 2. PHOTO THUMBNAILS ---------------------------------------------------------- */
.ssv-photo-thumb {
    position: relative;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

    .ssv-photo-thumb a {
        display: block;
    }

    .ssv-photo-thumb img {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        transition: transform .4s var(--ease);
    }

    .ssv-photo-thumb:hover img {
        transform: scale(1.08);
    }

.ssv-photo-thumb__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 37, 69, 0);
    color: #fff;
    font-size: 1.3rem;
    opacity: 0;
    transition: background-color .3s var(--ease), opacity .3s var(--ease);
    pointer-events: none;
}

.ssv-photo-thumb:hover .ssv-photo-thumb__overlay {
    background: rgba(11, 37, 69, .45);
    opacity: 1;
}


/* 3. REDUCED MOTION -------------------------------------------------------------
   Card lift/fade speed is already handled globally by site-modern.css's
   ".ssv-scope *" / ".ssv-card:hover" rules; this also cancels the image
   zoom and overlay fade, which target descendants those rules don't reach. */
@media (prefers-reduced-motion: reduce) {
    .ssv-album-card:hover .ssv-album-card__media img,
    .ssv-photo-thumb:hover img {
        transform: none;
    }
}
