* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #14264a;
    background: #eef5fb;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
    color: #ffffff;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 17px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: inherit;
    font-size: 10px;
    line-height: 1.05;
    letter-spacing: 0.08em;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 22px;
}

.main-nav {
    display: flex;
    gap: 19px;
    margin-left: auto;
    font-size: 11px;
}

.main-nav a {
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: #45d2fa;
    border-bottom-color: #45d2fa;
}

.search-icon {
    padding: 0;
    border: 0;
    color: #ffffff;
    background: transparent;
    font-size: 23px;
    cursor: pointer;
}

.gallery-hero {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 43%, #1c9fe7 0, #07528d 18%, transparent 45%),
        linear-gradient(105deg, #03142f 0%, #06295b 50%, #061a42 100%);
}

.hero-scene {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 100%;
    opacity: 0.72;
    background:
        radial-gradient(circle at 71% 26%, #8ce9ff 0 2%, transparent 3%),
        radial-gradient(circle at 68% 35%, #2d98de 0 17%, transparent 18%),
        radial-gradient(circle at 77% 52%, #0c5ca2 0 27%, transparent 28%),
        linear-gradient(145deg, transparent 0 40%, #0e6db7 41% 44%, transparent 45%),
        linear-gradient(145deg, #061a3f, #138fd2 53%, #031735);
}

.hero-scene::before {
    content: "";
    position: absolute;
    right: 9%;
    bottom: 0;
    width: 34%;
    height: 82%;
    background: linear-gradient(145deg, transparent 0 38%, #101923 39% 100%);
    clip-path: polygon(42% 0, 63% 7%, 78% 28%, 100% 100%, 0 100%, 27% 40%);
}

.hero-scene::after {
    content: "";
    position: absolute;
    right: 28%;
    bottom: 0;
    width: 52%;
    height: 25%;
    opacity: 0.8;
    background: repeating-linear-gradient(90deg, #071426 0 12px, #204b72 13px 17px);
    clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #03142f 0%, #03142fdd 34%, #03142f44 72%, #03142f11 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 310px;
    flex-direction: column;
    justify-content: center;
    padding-top: 32px;
}

.eyebrow {
    margin: 0;
    color: #5ed8fb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.eyebrow.blue {
    color: #167dd8;
}

.hero-content h1 {
    margin: 10px 0 12px;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 0.97;
    letter-spacing: -1.5px;
}

.hero-content h1 span {
    color: #16a9f1;
}

.hero-content p:not(.eyebrow) {
    max-width: 430px;
    margin: 0;
    color: #d9eafa;
    font-size: 14px;
    line-height: 1.4;
}

.gallery-section {
    padding: 18px 0 27px;
    background: #eef5fb;
}

.breadcrumb {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 12px;
    color: #6d8098;
    font-size: 10px;
}

.breadcrumb a {
    color: #087bea;
}

.gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
}

.gallery-heading h2 {
    margin: 5px 0 5px;
    font-size: 24px;
}

.intro-text {
    max-width: 620px;
    margin: 0;
    color: #667895;
    font-size: 11px;
    line-height: 1.45;
}

.gallery-search {
    position: relative;
    display: block;
    width: 285px;
    flex: 0 0 285px;
}

.gallery-search input {
    width: 100%;
    min-height: 38px;
    padding: 0 36px 0 12px;
    border: 1px solid #d9e4ef;
    border-radius: 5px;
    outline: none;
    color: #465b76;
    background: #ffffff;
    font-size: 11px;
}

.gallery-search > span {
    position: absolute;
    top: 7px;
    right: 12px;
    color: #14264a;
    font-size: 20px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.category-tabs button {
    min-height: 29px;
    padding: 0 17px;
    border: 1px solid #d8e3ee;
    border-radius: 5px;
    color: #344a67;
    background: #ffffff;
    font-size: 9px;
    cursor: pointer;
}

.category-tabs button:hover,
.category-tabs button.active {
    border-color: #087bea;
    color: #ffffff;
    background: #087bea;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.photo {
    position: relative;
    height: 112px;
    margin: 0;
    overflow: hidden;
    border: 3px solid #ffffff;
    border-radius: 6px;
    box-shadow: 0 3px 10px #183b6b18;
    background-color: #15508c;
}

.photo::before,
.photo::after {
    content: "";
    position: absolute;
}

.photo::before {
    inset: 0;
    opacity: 0.72;
    background: repeating-linear-gradient(125deg, transparent 0 13px, #ffffff20 14px 16px);
}

.photo::after {
    right: 9%;
    bottom: 0;
    width: 25%;
    height: 78%;
    background: linear-gradient(145deg, transparent 0 25%, #06162c 26% 100%);
    clip-path: polygon(48% 0, 68% 18%, 100% 100%, 0 100%, 20% 35%);
}

.photo figcaption {
    position: absolute;
    right: 8px;
    bottom: 7px;
    left: 8px;
    z-index: 1;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    text-shadow: 0 1px 4px #00000099;
}

.photo-stage {
    background: linear-gradient(135deg, #062e78, #0a94e0 52%, #061632);
}

.photo-audience {
    background: radial-gradient(circle at 47% 45%, #f0b37a 0 4%, transparent 5%), linear-gradient(135deg, #251513, #9e5f43 52%, #1a1728);
}

.photo-speaker {
    background: radial-gradient(circle at 57% 32%, #e9c094 0 6%, transparent 7%), linear-gradient(135deg, #0a4a9b, #14a8e7 53%, #061832);
}

.photo-panel {
    background: linear-gradient(135deg, #0b80d7, #75c8e7 48%, #172a59);
}

.photo-networking {
    background: radial-gradient(circle at 48% 35%, #f3c09e 0 6%, transparent 7%), linear-gradient(135deg, #315b86, #172e4c 55%, #d6966d);
}

.photo-exhibition {
    background: linear-gradient(135deg, #d6a374, #f0dbc2 48%, #41759d);
}

.photo-question {
    background: radial-gradient(circle at 52% 35%, #f0ad84 0 7%, transparent 8%), linear-gradient(135deg, #7a4436, #d39d77 45%, #1d3b65);
}

.photo-award {
    background: radial-gradient(circle at 59% 36%, #f1c79d 0 6%, transparent 7%), linear-gradient(135deg, #126bb8, #77d8f0 50%, #17395d);
}

.photo-poster {
    background: linear-gradient(135deg, #174d83, #5ba1bf 52%, #d7dfd9);
}

.photo-presentation {
    background: linear-gradient(135deg, #b7d4e4, #175fa6 52%, #071832);
}

.photo-dinner {
    background: linear-gradient(135deg, #49326c, #cc6fd0 48%, #f2b36b);
}

.photo-team {
    background: radial-gradient(circle at 52% 35%, #f1bf9e 0 7%, transparent 8%), linear-gradient(135deg, #1e416c, #0e91ca 52%, #e2a16e);
}

.photo-applause {
    background: linear-gradient(135deg, #193a6b, #a8c7dd 50%, #2b4568);
}

.photo-keynote {
    background: linear-gradient(135deg, #031c47, #1685d1 52%, #03142f);
}

.photo-venue {
    background: linear-gradient(135deg, #bcd0d3, #e9f2ec 50%, #7197a1);
}

.photo-cultural {
    background: linear-gradient(135deg, #ec7831, #ee4568 47%, #60336f);
}

.photo-welcome {
    background: linear-gradient(135deg, #e4edf0, #a5c7d5 48%, #31577a);
}

.photo-badges {
    background: linear-gradient(135deg, #0c1c39, #e9f1ef 49%, #0872bc);
}

.photo-hall {
    background: linear-gradient(135deg, #45226b, #1a83c6 53%, #f19e73);
}

.photo-conversation {
    background: radial-gradient(circle at 48% 36%, #f0c19a 0 7%, transparent 8%), linear-gradient(135deg, #142f55, #79a5c1 52%, #d99b73);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 17px;
}

.pagination a {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 4px;
    color: #586d87;
    background: #ffffff;
    font-size: 10px;
}

.pagination a:hover,
.pagination a.current {
    color: #ffffff;
    background: #087bea;
}

.community-banner {
    color: #ffffff;
    background:
        radial-gradient(circle at 76% 50%, #1164a855, transparent 34%),
        linear-gradient(105deg, #031936, #063e80);
}

.community-content {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.community-content h2 {
    margin: 5px 0;
    font-size: 23px;
}

.community-content p:not(.eyebrow) {
    max-width: 600px;
    margin: 0;
    color: #c8daf0;
    font-size: 11px;
    line-height: 1.4;
}

.banner-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 22px;
    border-radius: 5px;
    color: #ffffff;
    background: #087bea;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.site-footer {
    padding: 27px 0 35px;
    color: #ffffff;
    background: #031634;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.8fr 1.5fr;
    gap: 35px;
}

.footer-intro p {
    color: #9db2d1;
    font-size: 10px;
}

.footer-intro small {
    color: #8ca2c1;
    font-size: 9px;
}

.footer-grid h4 {
    margin: 0 0 10px;
    font-size: 11px;
}

.footer-grid > div:not(:first-child) a {
    display: block;
    margin: 6px 0;
    color: #afc1da;
    font-size: 10px;
}

.social-icons {
    color: #ffffff;
    font-size: 17px !important;
}

.subscribe-form {
    display: flex;
}

.subscribe-form input {
    width: 130px;
    padding: 8px;
    border: 0;
    font-size: 9px;
}

.subscribe-form button {
    padding: 0 9px;
    border: 0;
    color: #ffffff;
    background: #087bea;
    font-size: 9px;
    cursor: pointer;
}

@media (max-width: 850px) {
    .main-nav {
        display: none;
    }

    .gallery-heading {
        display: block;
    }

    .gallery-search {
        width: 100%;
        margin-top: 15px;
    }

    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .community-content {
        display: block;
        padding: 24px 0;
    }

    .banner-button {
        margin-top: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .gallery-hero,
    .hero-content {
        min-height: 390px;
    }

    .photo-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo {
        height: 125px;
    }
}

/* =========================================
   GALLERY BANNER
   Matches the About page banner
========================================= */

.gallery-hero {
    min-height: 430px;
}

.gallery-hero .hero-content {
    min-height: 430px;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.gallery-hero .hero-content h1 {
    margin-top: 12px;
    margin-bottom: 14px;
}

.gallery-hero .hero-content .eyebrow {
    margin-bottom: 0;
}

/* Tablet */
@media (max-width: 850px) {
    .gallery-hero {
        min-height: 430px;
    }

    .gallery-hero .hero-content {
        min-height: 430px;
        padding-top: 80px;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .gallery-hero {
        min-height: 510px;
    }

    .gallery-hero .hero-content {
        min-height: 510px;
        padding-top: 105px;
    }
}