@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600&display=swap");

/**
 * Frontend Activities gallery.
 */

.hb-act-page {
    --hb-act-ink: #1c1917;
    --hb-act-muted: #57534e;
    --hb-act-paper: #f4efe6;
    --hb-act-card: #ffffff;
    --hb-act-line: rgba(28, 25, 23, 0.1);
    --hb-act-accent: var(--hb-theme-primary, #176b87);
    --hb-act-accent-soft: var(--hb-theme-soft, #e8f4f7);
    --hb-act-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --hb-act-title: "Lexend", "DM Sans", "Segoe UI", sans-serif;
    --hb-act-sans: "Google Sans", "DM Sans", "Segoe UI", sans-serif;
    position: relative;
    isolation: isolate;
    color: var(--hb-act-ink);
    background: transparent;
    font-family: var(--hb-act-sans);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.hb-act-shell {
    width: 100%;
    max-width: 100%;
}

.hb-act-page *,
.hb-act-page *::before,
.hb-act-page *::after {
    box-sizing: border-box;
}

.hb-act-page h1,
.hb-act-page h2,
.hb-act-page p,
.hb-act-page figure,
.hb-act-page img,
.hb-act-page button {
    max-width: none;
}

.entry-content .hb-act-page img,
.hb-act-page img {
    margin: 0;
}

.hb-act-page .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hb-act-toolbar {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    margin: 0 0 0.4rem;
    padding: 0.15rem 0 0.3rem;
    background: color-mix(in srgb, #fff 82%, transparent);
    backdrop-filter: blur(16px);
}

.hb-act-search {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--hb-act-line);
    border-radius: 999px;
    background: var(--hb-act-card);
    color: var(--hb-act-muted);
}

.hb-act-search input {
    width: 100%;
    border: 0;
    background: transparent;
    font: 500 0.95rem/1.4 var(--hb-act-sans);
    color: var(--hb-act-ink);
    outline: none;
}

.hb-act-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    column-gap: 0.55rem;
    row-gap: 0.85rem;
    margin: 0;
    padding: 0 0 1.25rem;
}

.hb-act-card {
    min-width: 0;
    height: 100%;
    align-self: stretch;
    opacity: 0;
    transform: translateY(22px);
    animation: hb-act-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hb-act-card:nth-child(1) { animation-delay: 0.04s; }
.hb-act-card:nth-child(2) { animation-delay: 0.1s; }
.hb-act-card:nth-child(3) { animation-delay: 0.16s; }
.hb-act-card:nth-child(4) { animation-delay: 0.22s; }
.hb-act-card:nth-child(5) { animation-delay: 0.28s; }
.hb-act-card:nth-child(n+6) { animation-delay: 0.34s; }

.hb-act-card.is-hidden {
    display: none;
}

.hb-act-page .hb-act-card-hit,
.entry-content .hb-act-page .hb-act-card-hit,
.hb-act-page .hb-act-card-hit:hover,
.hb-act-page .hb-act-card-hit:focus,
.hb-act-page .hb-act-card-hit:focus-visible,
.hb-act-page .hb-act-card-hit:active,
.entry-content .hb-act-page .hb-act-card-hit:hover {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    height: 100% !important;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--hb-act-line);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: var(--hb-act-ink) !important;
    text-align: left;
    text-decoration: none;
    cursor: default;
    box-shadow: none;
    filter: none !important;
    opacity: 1 !important;
    outline: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.hb-act-page .hb-act-card-hit:hover,
.hb-act-page .hb-act-card-hit:focus-visible,
.entry-content .hb-act-page .hb-act-card-hit:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--hb-act-accent) 55%, var(--hb-act-line));
    box-shadow: none;
}

.hb-act-page figure.hb-act-media,
.entry-content .hb-act-page figure.hb-act-media {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--hb-act-accent-soft);
}

.hb-act-page .hb-act-media img,
.entry-content .hb-act-page .hb-act-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hb-act-card-hit:hover .hb-act-media img,
.hb-act-card-hit:focus-visible .hb-act-media img {
    transform: scale(1.1);
}

.hb-act-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--hb-act-accent);
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--hb-act-accent) 18%, transparent), transparent 50%),
        linear-gradient(180deg, var(--hb-act-accent-soft), #fff);
}

.hb-act-fallback svg {
    width: 70%;
    height: auto;
}

.hb-act-name,
.hb-act-page h2.hb-act-name,
.entry-content .hb-act-page h2.hb-act-name,
.entry-content .hb-act-page .hb-act-card-hit h2.hb-act-name,
.hb-act-page .hb-act-card-hit:hover h2.hb-act-name,
.hb-act-page .hb-act-card-hit:focus-visible h2.hb-act-name,
.entry-content .hb-act-page .hb-act-card-hit:hover h2.hb-act-name {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.35rem 0.75rem 0.3rem;
    min-height: 2.4em;
    font-family: "Lexend", "DM Sans", "Segoe UI", sans-serif !important;
    font-size: clamp(calc(1.05rem - 1pt), calc(1.4vw - 1pt), calc(1.25rem - 1pt)) !important;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--hb-act-ink) !important;
    background: #ffffff;
}

.hb-act-page .hb-act-card-hit:hover h2.hb-act-name,
.hb-act-page .hb-act-card-hit:focus-visible h2.hb-act-name,
.entry-content .hb-act-page .hb-act-card-hit:hover h2.hb-act-name {
    font-weight: 500;
    color: var(--hb-act-accent) !important;
}

.hb-act-copy {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem 0.3rem;
    background: #ffffff;
}

.hb-act-desc,
.hb-act-page .hb-act-card-hit:hover .hb-act-desc,
.hb-act-page .hb-act-card-hit:focus-visible .hb-act-desc {
    margin: 0 !important;
    padding: 0;
    display: block;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: none;
    font-family: var(--hb-act-sans);
    font-size: 0.82rem;
    font-weight: 400;
    background: #ffffff;
    line-height: 1.4;
    color: var(--hb-act-muted) !important;
}

.hb-act-page .hb-act-more,
.entry-content .hb-act-page .hb-act-more,
.hb-act-page .hb-act-more:hover,
.hb-act-page .hb-act-more:focus,
.hb-act-page .hb-act-more:focus-visible,
.hb-act-page .hb-act-more:active,
.entry-content .hb-act-page .hb-act-more:hover {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    margin-top: auto !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--hb-act-accent) !important;
    font-family: var(--hb-act-sans);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    cursor: pointer;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    outline: none;
}

.hb-act-empty {
    margin: 0;
    padding: 2rem 0 3rem;
    font-family: var(--hb-act-sans);
    font-size: 1.05rem;
    color: var(--hb-act-muted);
}

.hb-act-lightbox[hidden] {
    display: none;
}

.hb-act-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.hb-act-lightbox-scrim {
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 14, 0.62);
    backdrop-filter: blur(10px);
}

.hb-act-lightbox-panel {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(920px, 100%);
    max-height: min(88vh, 820px);
    overflow: auto;
    border-radius: 28px;
    background: var(--hb-act-card);
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.45);
    animation: hb-act-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hb-act-lightbox-media {
    margin: 0;
    min-height: 220px;
    background: #111;
}

.hb-act-lightbox-media img {
    display: block;
    width: 100%;
    max-height: 52vh;
    object-fit: cover;
}

.hb-act-lightbox-copy {
    padding: 1.4rem 1.5rem 1.7rem;
}

.hb-act-lightbox-copy h2 {
    margin: 0 0 0.65rem;
    font-family: var(--hb-act-display);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--hb-act-ink);
}

.hb-act-lightbox-copy p {
    margin: 0;
    font-family: var(--hb-act-sans);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--hb-act-muted);
    white-space: pre-wrap;
}

.hb-act-lightbox-x,
.hb-act-page .hb-act-lightbox-x:hover,
.hb-act-page .hb-act-lightbox-x:focus {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 252, 247, 0.94) !important;
    color: var(--hb-act-ink) !important;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    filter: none !important;
}

.hb-act-placeholder {
    padding: 1.5rem;
    border: 2px dashed #c4b8a5;
    border-radius: 12px;
    background: #faf7f2;
    text-align: center;
}

.hb-act-placeholder span {
    display: block;
    margin-top: 0.35rem;
    color: #57534e;
    font-size: 0.9rem;
}

@keyframes hb-act-rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hb-act-pop {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 720px) {
    .hb-act-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0.55rem;
        row-gap: 0.85rem;
    }
}

@media (min-width: 1100px) {
    .hb-act-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 0.55rem;
        row-gap: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hb-act-card,
    .hb-act-card-hit,
    .hb-act-media img,
    .hb-act-lightbox-panel {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
