/* ==========================================================================
   AMHSS Events listing
   Save as: public/assets/css/amhss-events.css

   - photo count badge sitting on the cover image
   - description clamped to 5 lines with a Read More toggle
   ========================================================================== */

/* ---- cover image + badge ---- */

.amhss-event-cover {
    position: relative;
    overflow: hidden;
}

.amhss-event-cover > a {
    display: block;
    position: relative;
}

.amhss-event-cover img {
    display: block;
    width: 100%;
    transition: transform .4s ease;
}

.amhss-event-cover:hover img {
    transform: scale(1.04);
}

.amhss-photo-count {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, .62);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    border-radius: 20px;
    backdrop-filter: blur(2px);
    transition: background .18s ease;
    pointer-events: none;   /* the whole image is the link */
}

.amhss-event-cover:hover .amhss-photo-count {
    background: rgba(28, 140, 63, .92);
}

.amhss-photo-count svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: currentColor;
}

/* ---- description clamp ---- */

.amhss-desc {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.amhss-desc.is-open {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.amhss-desc p {
    margin: 0;
}

/* fallback for browsers without line-clamp support */
@supports not (-webkit-line-clamp: 5) {
    .amhss-desc {
        display: block;
        max-height: 9em;
    }
    .amhss-desc.is-open {
        max-height: none;
    }
}

.amhss-readmore {
    display: none;              /* shown by JS only when the text overflows */
    margin-top: 12px;
    padding: 0;
    background: none;
    border: 0;
    color: #1c8c3f;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.4;
}

.amhss-readmore:hover {
    text-decoration: underline;
}

.amhss-readmore.is-visible {
    display: inline-block;
}

/* ---- gallery album card ---- */

.amhss-album-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .07);
    margin-bottom: 30px;
}

.amhss-album-title {
    padding: 18px 20px;
}

.amhss-album-title a {
    color: #222;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    display: block;
}

.amhss-album-title a:hover {
    color: #1c8c3f;
}