/*
 * site.css: everything that is not in bannerrr.css (bannerrr.css stays unchanged).
 * 1. Styles moved verbatim from the inline <style> blocks of recent-events.html and the event pages.
 * 2. Additions for the generated site: navigation on small screens, accessibility, lists,
 *    empty states, simple pages and the gallery. Same palette as the original design:
 *    #737A8C #535865 #293044 #834950 #fce6d7 #A9AFB2 #dce7f5
 */

:root {
    --ikal-slate: #737A8C;
    --ikal-slate-dark: #535865;
    --ikal-ink: #293044;
    --ikal-burgundy: #834950;
    --ikal-peach: #fce6d7;
    --ikal-grey: #A9AFB2;
    --ikal-blue: #dce7f5;
    --ikal-white: #ffffff;
    --ikal-font-rounded: "Arial Rounded MT Bold", "Arial Rounded MT", "Trebuchet MS", Arial, sans-serif;

    /* names used by the moved inline styles */
    --article-peach: #fce6d7;
    --article-blue: #dce7f5;
    --article-slate: #737A8C;
    --article-slate-dark: #535865;
    --article-ink: #293044;
    --article-burgundy: #834950;
    --article-white: #ffffff;
    --article-shadow: rgba(41, 48, 68, 0.14);
    --recent-peach: #fce6d7;
    --recent-blue: #dce7f5;
    --recent-slate: #737A8C;
    --recent-slate-dark: #535865;
    --recent-ink: #293044;
    --recent-burgundy: #834950;
    --recent-white: #ffffff;
    --recent-shadow: rgba(41, 48, 68, 0.13);
}

/* ==========================================================================
   1a. From recent-events.html
   ========================================================================== */

.recent-events-page {
    background: var(--recent-white);
    color: var(--recent-ink);
}

.recent-events-hero {
    position: relative;
    overflow: hidden;
    padding: 150px 20px 72px;
    background:
        radial-gradient(circle at 84% 25%, rgba(255, 255, 255, 0.85) 0 5px, transparent 6px),
        linear-gradient(128deg, var(--recent-blue) 0%, #eef3fa 68%, var(--recent-peach) 100%);
}

.recent-events-hero::before,
.recent-events-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.recent-events-hero::before {
    width: 210px;
    height: 210px;
    right: 8%;
    top: -96px;
    border: 34px solid rgba(131, 73, 80, 0.09);
}

.recent-events-hero::after {
    width: 118px;
    height: 118px;
    right: 22%;
    bottom: -74px;
    background: rgba(255, 255, 255, 0.42);
}

.recent-events-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.recent-events-hero-inner {
    position: relative;
    z-index: 1;
}

.recent-events-kicker {
    margin: 0 0 10px;
    color: var(--recent-burgundy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.recent-events-hero h1,
.recent-event-title {
    font-family: var(--ikal-font-rounded);
    font-weight: 700;
}

.recent-events-hero h1 {
    max-width: 780px;
    margin: 0;
    color: var(--recent-ink);
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.recent-events-hero-rule {
    display: block;
    width: 86px;
    height: 7px;
    margin-top: 24px;
    border-radius: 999px;
    background: var(--recent-burgundy);
}

.recent-events-list {
    padding: 76px 20px 96px;
}

.recent-event {
    display: grid;
    grid-template-columns: minmax(290px, 390px) minmax(0, 1fr);
    gap: clamp(38px, 6vw, 78px);
    align-items: center;
    padding: 30px;
    border: 1px solid rgba(115, 122, 140, 0.16);
    border-radius: 24px;
    background: var(--recent-white);
    box-shadow: 0 18px 45px var(--recent-shadow);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.recent-event:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(41, 48, 68, 0.17);
}

.recent-event:focus-visible {
    outline: 3px solid var(--recent-burgundy);
    outline-offset: 5px;
}

.recent-event + .recent-event {
    margin-top: 38px;
}

.recent-event-image-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: 17px;
    background: var(--recent-blue);
}

.recent-event-image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: inherit;
    pointer-events: none;
}

.recent-event-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.35s ease;
}

.recent-event:hover .recent-event-image {
    transform: scale(1.025);
}

.recent-event-copy {
    padding: 8px 12px 8px 0;
}

.recent-event-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--recent-slate-dark);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.recent-event-date::before {
    content: "";
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: var(--recent-burgundy);
}

.recent-event-title {
    margin: 0;
    color: var(--recent-ink);
    font-size: clamp(28px, 3.25vw, 44px);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.recent-event-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 11px 17px;
    border-radius: 999px;
    background: var(--recent-blue);
    color: var(--recent-ink);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.recent-event-link:hover,
.recent-event-link:focus-visible,
.recent-event:hover .recent-event-link,
.recent-event:focus-visible .recent-event-link {
    background: var(--recent-burgundy);
    color: var(--recent-white);
    transform: translateY(-2px);
}

.recent-event-link-arrow {
    line-height: 1;
    transition: transform 0.2s ease;
}

.recent-event-link:hover .recent-event-link-arrow,
.recent-event-link:focus-visible .recent-event-link-arrow {
    transform: translateX(3px);
}

@media (max-width: 840px) {
    .recent-events-hero {
        padding-top: 132px;
    }

    .recent-event {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 22px;
    }

    .recent-event-image-frame {
        aspect-ratio: 16 / 9;
    }

    .recent-event-copy {
        padding: 0 4px 8px;
    }
}

@media (max-width: 520px) {
    .recent-events-hero {
        padding: 116px 20px 54px;
    }

    .recent-events-list {
        padding: 48px 16px 70px;
    }

    .recent-event {
        padding: 15px;
        border-radius: 19px;
    }

    .recent-event-title {
        font-size: 27px;
    }
}

/* ==========================================================================
   1b. From the event pages (university-belgrade-visit.html; the cover image frame
       from ceepus-timisoara.html / head26-valencia.html / eulist-bip-lappeenranta.html)
   ========================================================================== */

.event-article-page {
    padding-top: 70px;
    background: var(--article-white);
    color: var(--article-ink);
}

.event-article-hero {
    padding: 72px 20px 58px;
    background: var(--article-blue);
}

.event-article-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.event-article-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 31px;
    color: var(--article-burgundy);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.event-article-back:hover,
.event-article-back:focus-visible {
    text-decoration: underline;
}

.event-article-date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    margin: 0 0 18px;
    color: var(--article-slate-dark);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.event-article-date::before {
    content: "";
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: var(--article-burgundy);
}

.event-article-hero h1 {
    max-width: 920px;
    margin: 0;
    color: var(--article-ink);
    font-family: var(--ikal-font-rounded);
    font-size: clamp(36px, 5.2vw, 62px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.event-article-body {
    padding: 68px 20px 98px;
}

.event-article-image-frame {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 48px;
    border-radius: 22px;
    background: var(--article-peach);
    box-shadow: 0 18px 46px rgba(41, 48, 68, 0.14);
}

.event-article-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-article-copy {
    max-width: 790px;
    margin: 0 auto;
}

.event-article-copy p {
    margin: 0 0 30px;
    color: var(--article-slate-dark);
    font-size: 18px;
    line-height: 1.85;
}

.event-article-copy strong {
    color: var(--article-ink);
}

.event-article-copy em {
    color: var(--article-burgundy);
}

.article-media {
    margin: 45px auto 50px;
}

.article-photo {
    display: block;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 18px 46px var(--article-shadow);
}

.article-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(115, 122, 140, 0.22);
    background: var(--article-white);
    box-shadow: 0 20px 50px rgba(41, 48, 68, 0.16);
}

.carousel-viewport {
    position: relative;
    height: clamp(430px, 65vw, 680px);
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: none;
    margin: 0;
}

.carousel-slide.is-active {
    display: block;
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--article-peach);
}

.carousel-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--article-ink);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
    background: var(--article-peach);
    transform: translateY(-50%) scale(1.05);
    outline: 3px solid var(--article-burgundy);
    outline-offset: 2px;
}

.carousel-control--prev {
    left: 18px;
}

.carousel-control--next {
    right: 18px;
}

.carousel-status {
    position: absolute;
    right: 20px;
    bottom: 18px;
    z-index: 2;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(41, 48, 68, 0.82);
    color: var(--article-white);
    font-size: 13px;
    font-weight: 700;
}

.carousel-thumbnails {
    display: flex;
    gap: 11px;
    padding: 15px;
    overflow-x: auto;
    background: var(--article-white);
    border-top: 1px solid rgba(115, 122, 140, 0.18);
    scrollbar-color: var(--article-slate) var(--article-blue);
    scrollbar-width: thin;
}

.carousel-thumbnail {
    flex: 0 0 106px;
    height: 76px;
    padding: 0;
    overflow: hidden;
    border: 3px solid transparent;
    border-radius: 9px;
    background: var(--article-blue);
    opacity: 0.64;
    cursor: pointer;
    transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.carousel-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-thumbnail:hover,
.carousel-thumbnail:focus-visible {
    opacity: 1;
    outline: none;
    border-color: var(--article-slate);
}

.carousel-thumbnail.is-active {
    opacity: 1;
    border-color: var(--article-burgundy);
    transform: translateY(-2px);
}

/* .article-closing from the original; editors get it with the "quote" button of the editor */
.event-article-copy blockquote {
    margin: 46px 0 0;
    padding: 34px 38px;
    border-left: 6px solid var(--article-burgundy);
    border-radius: 0 16px 16px 0;
    background: var(--article-blue);
}

.event-article-copy blockquote + * {
    margin-top: 46px;
}

.event-article-copy blockquote p:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .event-article-page {
        padding-top: 64px;
    }

    .event-article-hero {
        padding: 50px 20px 44px;
    }

    .event-article-body {
        padding: 46px 16px 70px;
    }

    .event-article-image-frame {
        margin-bottom: 32px;
        border-radius: 16px;
    }

    .event-article-copy p {
        font-size: 16px;
        line-height: 1.75;
    }

    .article-media {
        margin: 34px auto 38px;
    }

    .article-photo,
    .article-carousel {
        border-radius: 15px;
    }

    .carousel-viewport {
        height: min(118vw, 570px);
    }

    .carousel-control {
        width: 42px;
        height: 42px;
    }

    .carousel-control--prev {
        left: 10px;
    }

    .carousel-control--next {
        right: 10px;
    }

    .carousel-thumbnails {
        gap: 8px;
        padding: 11px;
    }

    .carousel-thumbnail {
        flex-basis: 82px;
        height: 58px;
    }

    .event-article-copy blockquote {
        padding: 27px 24px;
    }
}

/* ==========================================================================
   2. Additions
   ========================================================================== */

/* ----- Accessibility helpers ----- */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--ikal-ink);
    color: var(--ikal-white);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: none;
}

main:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible,
label:focus-visible,
[tabindex]:focus-visible,
.course-toggle:focus-visible + .course-label {
    outline: 3px solid var(--ikal-burgundy);
    outline-offset: 3px;
}

nav a:focus-visible,
nav button:focus-visible,
.site-footer a:focus-visible {
    outline-color: var(--ikal-peach);
}

img {
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

/* ----- Navigation ----- */
.nav-menu a[aria-current="page"],
.nav-dropdown.is-current-section > a {
    color: var(--ikal-white);
    box-shadow: inset 0 -3px 0 var(--ikal-peach);
}

.dropdown-menu a[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--ikal-peach);
    background-color: rgba(255, 255, 255, 0.12);
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo-image {
    display: block;
    max-height: 44px;
    width: auto;
}

/* Keyboard users open the dropdowns with Tab, not only on hover. */
.nav-dropdown:focus-within .dropdown-menu {
    display: block;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ikal-white);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle-bar {
    position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

.nav--open .nav-toggle-bar { background: transparent; }
.nav--open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav--open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* site.js adds .nav--collapsed whenever the menu items do not fit on one line. */
.nav--collapsed .nav-toggle {
    display: inline-flex;
}

.nav--collapsed .nav-container {
    flex-wrap: wrap;
}

.nav--collapsed .nav-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 12px 0 6px;
}

.nav--collapsed.nav--open .nav-menu {
    display: flex;
}

.nav--collapsed .nav-menu > li {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.nav--collapsed .nav-menu li a {
    display: block;
    padding: 12px 4px;
}

.nav--collapsed .dropdown-menu {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 8px 16px;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.nav--collapsed .dropdown-menu li a {
    padding: 8px 4px;
    white-space: normal;
}

.nav--collapsed .nav-menu a[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--ikal-peach);
    padding-left: 12px;
}

/* ----- Home page ----- */
/* bannerrr.css points at courses-bg.jpg, which never existed; keep the section as it looked. */
.courses-section {
    background-image: none;
}

.hero--no-image {
    background-image: none;
    background-color: var(--ikal-slate);
}

.recent-poster {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.recent-poster img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-poster:hover img {
    transform: scale(1.03);
}

.event-when {
    margin: 0 0 6px;
    color: var(--ikal-slate-dark);
    font-size: 14px;
    font-weight: 600;
}

.course-description:empty {
    display: none;
}

/* bannerrr.css keeps align-self: flex-start when the columns stack, which shrinks the list. */
@media (max-width: 768px) {
    .courses-list {
        align-self: stretch;
    }
}

/* ----- Empty states ----- */
.empty-state {
    padding: 28px 30px;
    border: 2px dashed rgba(115, 122, 140, 0.45);
    border-radius: 16px;
    background: rgba(220, 231, 245, 0.45);
    color: var(--ikal-slate-dark);
    font-size: 17px;
    line-height: 1.6;
}

.empty-state p {
    margin: 0;
}

.empty-state p + p {
    margin-top: 18px;
}

.courses-list .empty-state,
.important-dates-panel .empty-state {
    background: rgba(255, 255, 255, 0.6);
}

/* ----- About ----- */
.about-intro-full .intro-text p + p {
    margin-top: 1em;
}

/* ----- Staff ----- */
.staff-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--ikal-peach);
    color: var(--ikal-slate);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.staff-modal-content .staff-modal-position {
    margin: -14px 0 22px;
    color: var(--ikal-burgundy);
    font-weight: 700;
}

.staff-modal-content .staff-modal-position:empty,
.staff-modal-content .staff-modal-bio:empty {
    display: none;
}

.staff-modal-content .staff-modal-email {
    margin-top: 22px;
}

.staff-modal-email a {
    color: var(--ikal-burgundy);
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* ----- Events overview, summaries, locations ----- */
.events-overview + .events-overview {
    padding-top: 0;
}

.events-overview-heading {
    margin: 0 0 28px;
    color: var(--ikal-slate-dark);
    font-family: var(--ikal-font-rounded);
    font-size: clamp(26px, 3vw, 34px);
}

.recent-event-summary {
    margin: 16px 0 0;
    color: var(--ikal-slate-dark);
    font-size: 17px;
    line-height: 1.6;
}

.recent-event-location::before,
.event-article-location::before {
    content: "·";
    margin-right: 10px;
}

.recent-event-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(83, 88, 101, 0.45);
    font-family: var(--ikal-font-rounded);
    font-size: 40px;
    letter-spacing: 0.1em;
}

.event-article-summary {
    max-width: 820px;
    margin: 22px 0 0;
    color: var(--ikal-slate-dark);
    font-size: 20px;
    line-height: 1.6;
}

.event-article-copy img {
    display: block;
    max-width: 100%;
    max-height: 780px;
    height: auto;
    margin: 45px auto 50px;
    border-radius: 20px;
    box-shadow: 0 18px 46px var(--article-shadow);
}

.event-article-copy p img {
    margin: 0 auto;
}

.event-article-copy h2,
.event-article-copy h3,
.event-article-copy h4,
.rich-text h2,
.rich-text h3,
.rich-text h4 {
    margin: 40px 0 16px;
    color: var(--ikal-ink);
    font-family: var(--ikal-font-rounded);
    line-height: 1.25;
}

.event-article-copy h2,
.rich-text h2 { font-size: 30px; }
.event-article-copy h3,
.rich-text h3 { font-size: 24px; }
.event-article-copy h4,
.rich-text h4 { font-size: 20px; }

.event-article-copy ul,
.event-article-copy ol,
.rich-text ul,
.rich-text ol {
    margin: 0 0 30px;
    padding-left: 26px;
    color: var(--ikal-slate-dark);
    font-size: 18px;
    line-height: 1.8;
}

.event-article-copy a,
.rich-text a {
    color: var(--ikal-burgundy);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.event-article-copy hr,
.rich-text hr {
    margin: 40px 0;
    border: 0;
    border-top: 2px solid var(--ikal-blue);
}

.event-article-copy figure,
.rich-text figure {
    margin: 45px 0 50px;
}

.event-article-copy figcaption,
.rich-text figcaption {
    margin-top: 12px;
    color: var(--ikal-slate-dark);
    font-size: 15px;
    text-align: center;
}

.announcement-page .event-article-date .announcement-tag {
    letter-spacing: 0.08em;
}

/* ----- Simple pages (For students, Publications, International, Gallery) ----- */
.simple-page-body {
    padding: 64px 20px 90px;
    background: var(--ikal-white);
}

.simple-page-container {
    max-width: 860px;
    margin: 0 auto;
}

.simple-page-container--wide {
    max-width: 1200px;
}

.simple-page-intro {
    margin: 0 0 32px;
    color: var(--ikal-ink);
    font-size: 21px;
    line-height: 1.7;
}

.rich-text {
    color: var(--ikal-slate-dark);
    font-size: 18px;
    line-height: 1.8;
}

.rich-text p {
    margin: 0 0 22px;
}

.rich-text img {
    display: block;
    height: auto;
    margin: 36px auto;
    border-radius: 16px;
}

.rich-text blockquote {
    margin: 36px 0;
    padding: 26px 30px;
    border-left: 6px solid var(--ikal-burgundy);
    border-radius: 0 16px 16px 0;
    background: var(--ikal-blue);
}

.rich-text blockquote p:last-child {
    margin-bottom: 0;
}

/* ----- Gallery ----- */
.gallery-group + .gallery-group {
    margin-top: 64px;
}

.gallery-group-heading {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--ikal-blue);
}

.gallery-group-heading h2 {
    margin: 0 0 6px;
    font-family: var(--ikal-font-rounded);
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.25;
}

.gallery-group-heading h2 a {
    color: var(--ikal-ink);
    text-decoration: none;
}

.gallery-group-heading h2 a:hover {
    color: var(--ikal-burgundy);
    text-decoration: underline;
}

.gallery-group-date {
    margin: 0;
    color: var(--ikal-slate-dark);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-photo {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: var(--ikal-blue);
    box-shadow: 0 10px 26px rgba(41, 48, 68, 0.12);
}

.gallery-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-photo:hover img {
    transform: scale(1.04);
}

/* ----- Small screens down to 360 px ----- */
@media (max-width: 600px) {
    .nav-container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 20px;
    }

    .section-title {
        font-size: 30px;
    }

    .events-section,
    .about-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .simple-page-body {
        padding: 40px 16px 64px;
    }

    .simple-page-intro {
        font-size: 18px;
    }

    .empty-state {
        padding: 22px 20px;
        font-size: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .staff-header h1 {
        padding: 0 16px;
    }
}

@media (max-width: 400px) {
    .recent-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    nav.nav-hidden {
        transform: none;
    }

    .hero {
        background-attachment: scroll;
    }
}
