/* ACSIC 2026 Image Gallery
   All styles are scoped to .acsic-image-widget.
*/

.acsic-image-widget {
    --navy: #071426;
    --navy-2: #0d2340;
    --blue: #174d91;
    --bright-blue: #168ad0;
    --yellow: #ffbf00;
    --white: #fff;
    --off-white: #f7f9fb;
    --text: #172438;
    --muted: #687488;
    --border: rgba(7,20,38,.10);
    width: 100%;
    margin: 0;
    background: var(--off-white);
    color: var(--text);
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.6;
    overflow: hidden;
}

.acsic-image-widget *,
.acsic-image-widget *::before,
.acsic-image-widget *::after {
    box-sizing: border-box;
}

.acsic-image-widget h1,
.acsic-image-widget h2,
.acsic-image-widget h3,
.acsic-image-widget p,
.acsic-image-widget figure {
    margin-top: 0;
}

.acsic-image-widget button {
    font: inherit;
}

.acsic-image-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 430px;
    padding: 95px 25px 85px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(25,107,175,.42), transparent 43%),
        linear-gradient(135deg,#030c18 0%,#071426 50%,#0a1d34 100%);
}

.acsic-image-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .43;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
    background-size: 85px 85px;
    mask-image: linear-gradient(to bottom,rgba(0,0,0,.9),transparent);
}

.acsic-image-hero::after {
    content: "";
    position: absolute;
    width: 900px;
    height: 900px;
    top: -620px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1px solid rgba(255,191,0,.13);
    box-shadow:
        0 0 0 75px rgba(255,255,255,.018),
        0 0 0 150px rgba(255,255,255,.014),
        0 0 0 225px rgba(255,255,255,.010);
}

.acsic-image-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1050px,100%);
    text-align: center;
}

.acsic-image-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 21px;
    color: var(--yellow);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.acsic-image-eyebrow::before,
.acsic-image-eyebrow::after {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--yellow);
}

.acsic-image-title {
    margin: 0 !important;
    color: #fff !important;
    font-family: "Bebas Neue","Arial Narrow",sans-serif !important;
    font-size: clamp(58px,8vw,108px) !important;
    font-weight: 400 !important;
    line-height: .9 !important;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.acsic-image-title span {
    color: var(--yellow);
}

.acsic-image-hero-description {
    max-width: 780px;
    margin: 25px auto 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(12px,1.4vw,15px);
    line-height: 1.8;
}

.acsic-image-divider {
    width: 65px;
    height: 3px;
    margin: 27px auto 0;
    border-radius: 10px;
    background: var(--yellow);
}

.acsic-image-main {
    width: min(1180px,calc(100% - 50px));
    margin: 0 auto;
    padding: 80px 0 95px;
}

.acsic-image-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 40px;
}

.acsic-image-section-header > div:first-child {
    max-width: 760px;
}

.acsic-image-label {
    margin-bottom: 8px;
    color: var(--bright-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.acsic-image-section-title {
    margin: 0 !important;
    color: var(--navy) !important;
    font-family: "Bebas Neue","Arial Narrow",sans-serif !important;
    font-size: clamp(48px,5vw,70px) !important;
    font-weight: 400 !important;
    line-height: .95 !important;
    text-transform: uppercase;
}

.acsic-image-section-description {
    max-width: 700px;
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.acsic-image-count {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    color: var(--navy);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    box-shadow: 0 5px 18px rgba(7,20,38,.05);
}

.acsic-image-count strong {
    color: var(--yellow);
    font-size: 18px;
}

.acsic-image-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 22px;
}

.acsic-image-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 6px 22px rgba(7,20,38,.055);
    cursor: pointer;
    outline: none;
    transition: transform .3s ease,box-shadow .3s ease,border-color .3s ease;
}

.acsic-image-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,191,0,.55);
    box-shadow: 0 18px 42px rgba(7,20,38,.13);
}

.acsic-image-media {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--navy);
}

.acsic-image-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease,filter .45s ease;
}

.acsic-image-card:hover .acsic-image-media img {
    transform: scale(1.055);
    filter: brightness(.76);
}

.acsic-image-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,rgba(4,13,25,.85),rgba(4,13,25,0) 55%);
    opacity: .82;
    transition: opacity .3s ease;
}

.acsic-image-card:hover .acsic-image-shade {
    opacity: 1;
}

.acsic-image-number {
    position: absolute;
    top: 13px;
    left: 13px;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 3px;
    background: rgba(7,20,38,.82);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.1px;
}

.acsic-image-zoom {
    position: absolute;
    top: 13px;
    right: 13px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--navy);
    font-size: 20px;
    line-height: 1;
    opacity: 0;
    transform: scale(.75);
    transition: opacity .3s ease,transform .3s ease;
}

.acsic-image-card:hover .acsic-image-zoom {
    opacity: 1;
    transform: scale(1);
}

.acsic-image-media figcaption,
.acsic-image-media > figcaption {
    position: absolute;
    left: 19px;
    right: 19px;
    bottom: 17px;
    z-index: 2;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.acsic-image-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--yellow);
    transition: width .35s ease;
}

.acsic-image-card:hover::after {
    width: 100%;
}

.acsic-image-card:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.acsic-image-cta {
    position: relative;
    margin-top: 65px;
    padding: 43px 48px;
    overflow: hidden;
    border-radius: 7px;
    background:
        radial-gradient(circle at 90% 50%,rgba(20,137,208,.38),transparent 35%),
        linear-gradient(110deg,#071426,#102d50);
    box-shadow: 0 15px 40px rgba(7,20,38,.13);
}

.acsic-image-cta::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    right: -220px;
    top: -180px;
    border: 1px solid rgba(255,191,0,.18);
    border-radius: 50%;
    box-shadow:
        0 0 0 55px rgba(255,255,255,.015),
        0 0 0 110px rgba(255,255,255,.01);
}

.acsic-image-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 730px;
}

.acsic-image-cta-label {
    margin-bottom: 8px;
    color: var(--yellow);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.acsic-image-cta h2 {
    margin: 0 !important;
    color: #fff !important;
    font-family: "Bebas Neue","Arial Narrow",sans-serif !important;
    font-size: clamp(35px,4vw,52px) !important;
    font-weight: 400 !important;
    line-height: .95 !important;
    text-transform: uppercase;
}

.acsic-image-cta p {
    max-width: 650px;
    margin: 13px 0 0;
    color: rgba(255,255,255,.7);
    font-size: 12px;
    line-height: 1.75;
}

/* Lightbox */
.acsic-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 35px;
    background: rgba(2,8,18,.95);
    backdrop-filter: blur(8px);
}

.acsic-image-lightbox.active {
    display: flex;
}

.acsic-image-lightbox-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1200px,100%);
    height: min(88vh,850px);
}

.acsic-image-lightbox-media {
    position: relative;
    max-width: calc(100% - 120px);
    max-height: 100%;
    text-align: center;
}

.acsic-image-lightbox-media img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 76vh;
    border-radius: 4px;
    box-shadow: 0 25px 80px rgba(0,0,0,.55);
}

.acsic-image-lightbox-caption {
    padding: 12px 15px 0;
    color: rgba(255,255,255,.86);
    font-size: 12px;
}

.acsic-image-close,
.acsic-image-prev,
.acsic-image-next {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    transition: background .25s ease,color .25s ease,transform .25s ease;
}

.acsic-image-close {
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-family: Arial,sans-serif;
    font-size: 25px;
    line-height: 1;
}

.acsic-image-prev,
.acsic-image-next {
    top: 50%;
    width: 48px;
    height: 70px;
    transform: translateY(-50%);
    border-radius: 5px;
    font-family: Arial,sans-serif;
    font-size: 40px;
    line-height: 1;
}

.acsic-image-prev { left: 0; }
.acsic-image-next { right: 0; }

.acsic-image-close:hover,
.acsic-image-prev:hover,
.acsic-image-next:hover {
    background: var(--yellow);
    color: var(--navy);
}

.acsic-image-prev:hover { transform: translateY(-50%) translateX(-3px); }
.acsic-image-next:hover { transform: translateY(-50%) translateX(3px); }
.acsic-image-close:hover { transform: rotate(90deg); }

body.acsic-image-lightbox-open {
    overflow: hidden;
}

@media (max-width:1024px) {
    .acsic-image-hero {
        min-height: 400px;
        padding: 85px 25px 75px;
    }

    .acsic-image-main {
        width: min(920px,calc(100% - 40px));
        padding: 65px 0 80px;
    }

    .acsic-image-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 20px;
    }
}

@media (max-width:680px) {
    .acsic-image-hero {
        min-height: 365px;
        padding: 70px 18px 65px;
    }

    .acsic-image-eyebrow {
        gap: 8px;
        margin-bottom: 18px;
        font-size: 9px;
        letter-spacing: 1.6px;
    }

    .acsic-image-eyebrow::before,
    .acsic-image-eyebrow::after {
        width: 17px;
    }

    .acsic-image-title {
        font-size: clamp(52px,15vw,75px) !important;
    }

    .acsic-image-hero-description {
        margin-top: 20px;
        font-size: 11px;
        line-height: 1.7;
    }

    .acsic-image-main {
        width: calc(100% - 30px);
        padding: 55px 0 70px;
    }

    .acsic-image-section-header {
        display: block;
        margin-bottom: 30px;
    }

    .acsic-image-section-title {
        font-size: 52px !important;
    }

    .acsic-image-section-description {
        font-size: 11px;
        line-height: 1.75;
    }

    .acsic-image-count {
        display: inline-flex;
        margin-top: 18px;
    }

    .acsic-image-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .acsic-image-media {
        aspect-ratio: 4/3;
    }

    .acsic-image-cta {
        margin-top: 45px;
        padding: 32px 25px;
    }

    .acsic-image-cta h2 {
        font-size: 38px !important;
    }

    .acsic-image-cta p {
        font-size: 11px;
    }

    .acsic-image-lightbox {
        padding: 15px;
    }

    .acsic-image-lightbox-inner {
        height: 90vh;
    }

    .acsic-image-lightbox-media {
        max-width: calc(100% - 75px);
    }

    .acsic-image-lightbox-media img {
        max-height: 70vh;
    }

    .acsic-image-prev,
    .acsic-image-next {
        width: 36px;
        height: 55px;
        font-size: 30px;
    }

    .acsic-image-close {
        top: 0;
        right: 0;
        width: 37px;
        height: 37px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .acsic-image-widget *,
    .acsic-image-widget *::before,
    .acsic-image-widget *::after {
        animation-duration:.01ms !important;
        transition-duration:.01ms !important;
    }
}
