.gallery-section {
    background: radial-gradient(ellipse at 0 0, #eaf1f9 0, transparent 55%), #f7f9fc;
    padding: 80px 0 64px;
    color: #14243c;
}
.gallery-container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.gallery-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.gallery-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #1f5caa; font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.gallery-eyebrow > span { width: 7px; height: 7px; background: #7cb657; border-radius: 50%; }
.gallery-intro h2 { margin: 14px 0; font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.045em; line-height: 1.15; }
.gallery-intro h2 > span { color: #1f5caa; }
.gallery-intro p { margin: 0; color: #64748b; font-size: 15px; line-height: 1.8; }
.gallery-order { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 11px 15px; border: 1px solid #dce4ed; border-radius: 30px; font-size: 11px; font-weight: 600; color: #64748b; background: #ffffffb3; }
.gallery-order > span:first-child { font-size: 17px; color: #1f5caa; }
.gallery-order-divider { color: #cbd5e1; }
.gallery-album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.gallery-album-card { display: block; position: relative; isolation: isolate; overflow: hidden; min-width: 0; aspect-ratio: 4 / 4.7; border-radius: 22px; color: #fff; background: #14243c; box-shadow: 0 12px 30px -18px #14243c80; transition: transform .4s, box-shadow .4s; text-decoration: none; }
.gallery-album-card:hover { transform: translateY(-6px); box-shadow: 0 22px 42px -18px #14243c80; }
.gallery-album-card:focus-visible, .gallery-close:focus-visible, .gallery-tab:focus-visible, .gallery-media-card:focus-visible, .gallery-load-more:focus-visible, .gallery-folder-links a:focus-visible, .gallery-back:focus-visible { outline: 3px solid #7cb657; outline-offset: 5px; }
.gallery-slideshow { position: absolute; inset: 0; z-index: -3; }
.gallery-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 5.5s linear; }
.gallery-slide.is-active { opacity: 1; transform: scale(1); }
.gallery-card-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0c1c3240, #0c1c3200 30%, #0c1c3240 48%, #0c1c32f5); }
.gallery-card-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 24px; }
.gallery-edition-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 30px; border: 1px solid #ffffff50; background: #12223966; backdrop-filter: blur(10px); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.gallery-edition-badge.is-latest { color: #eaffdd; border-color: #a8d48b70; background: #305c2caa; }
.gallery-edition-badge > span { width: 5px; height: 5px; border-radius: 50%; background: #b0ed87; }
.gallery-card-year { margin-top: -6px; color: #ffffffc4; font-size: 48px; font-weight: 800; letter-spacing: -.07em; line-height: 1; text-shadow: 0 2px 12px #14243c30; }
.gallery-card-bottom { position: absolute; right: 26px; bottom: 26px; left: 26px; }
.gallery-card-kicker { color: #c3e3ad; font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.gallery-card-bottom h3 { margin: 10px 0 22px; color: #fff; font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.gallery-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #ffffff38; padding-top: 17px; }
.gallery-card-cta { display: inline-flex; align-items: center; gap: 13px; font-size: 11px; font-weight: 600; }
.gallery-card-cta > span { font-size: 18px; transition: transform .3s; }
.gallery-album-card:hover .gallery-card-cta > span { transform: translate(3px, -3px); }
.gallery-slide-dots { display: flex; gap: 4px; align-items: center; }
.gallery-slide-dots > span { width: 4px; height: 4px; border-radius: 10px; background: #ffffff59; transition: background .5s, width .5s; }
.gallery-slide-dots > span.is-active { width: 15px; background: #b0dc91; }
.gallery-footnote { margin: 34px 0 0; color: #8190a3; font-size: 12px; text-align: center; }
.gallery-dialog { width: min(1120px, calc(100% - 48px)); max-width: none; max-height: min(88dvh, 960px); margin: auto; padding: 0; border: 1px solid #ffffff90; border-radius: 26px; background: #f7f9fc; color: #14243c; box-shadow: 0 36px 100px #00152a66; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.gallery-dialog[open] { animation: gallery-dialog-in .3s ease both; }
.gallery-dialog::backdrop { background: #061529b8; backdrop-filter: blur(9px); }
.gallery-dialog-heading { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 30px 32px 24px; border-bottom: 1px solid #e3eaf1; background: #fffffff5; backdrop-filter: blur(12px); }
.gallery-dialog-heading h2 { margin: 9px 0 7px; font-size: 32px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.gallery-dialog-heading p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.6; }
.gallery-close { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: 1px solid #e2e8f0; border-radius: 50%; background: #f7f9fc; color: #526377; cursor: pointer; transition: background .2s, transform .2s; }
.gallery-close:hover { background: #e8eef6; transform: rotate(90deg); }
.gallery-dialog-body { padding: 24px 32px 32px; }
.gallery-browser-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.gallery-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #dfe7ef; border-radius: 14px; background: #edf1f6; }
.gallery-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; background: transparent; padding: 10px 14px; color: #64748b; font-size: 12px; font-weight: 700; cursor: pointer; transition: color .2s, background .2s, box-shadow .2s; }
.gallery-tab svg { width: 17px; height: 17px; }
.gallery-tab > span { min-width: 20px; border-radius: 5px; padding: 2px 5px; color: #64748b; background: #dfe5ed; font-size: 10px; }
.gallery-tab.is-active { color: #1f5caa; background: #fff; box-shadow: 0 2px 7px #14243c0d; }
.gallery-tab.is-active > span { color: #1f5caa; background: #eaf1fa; }
.gallery-folder-links { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
.gallery-folder-links a { display: inline-flex; align-items: center; gap: 6px; color: #1f5caa; text-decoration: none; font-size: 11px; font-weight: 700; }
.gallery-folder-links a:hover { text-decoration: underline; }
.gallery-folder-links a[hidden], .gallery-load-more[hidden] { display: none; }
.gallery-browser-hint { margin: 20px 0 17px; color: #718096; font-size: 12px; line-height: 1.6; }
.gallery-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery-media-card { display: block; min-width: 0; overflow: hidden; border-radius: 15px; border: 1px solid #e2e8f0; background: #fff; text-decoration: none; box-shadow: 0 5px 12px #14243c04; transition: transform .25s, box-shadow .25s; animation: gallery-media-in .35s ease both; }
.gallery-media-card:hover { transform: translateY(-4px); box-shadow: 0 14px 26px -10px #14243c30; }
.gallery-media-visual { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e0e9f2, #e9f0e5); }
.gallery-media-visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.gallery-media-card:hover img { transform: scale(1.05); }
.gallery-media-visual::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, #0c1c3260); pointer-events: none; }
.gallery-media-label { position: absolute; bottom: 12px; left: 12px; z-index: 1; padding: 5px 9px; border: 1px solid #ffffff60; border-radius: 7px; background: #14243c90; color: #fff; backdrop-filter: blur(8px); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.gallery-media-play { position: absolute; top: 50%; left: 50%; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #ffffffa0; border-radius: 50%; background: #ffffffee; color: #1f5caa; font-size: 21px; transform: translate(-50%, -50%); box-shadow: 0 5px 20px #14243c40; }
.gallery-media-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; }
.gallery-media-caption strong { display: block; color: #21344c; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.gallery-media-caption small { display: block; margin-top: 4px; color: #8190a3; font-size: 10px; }
.gallery-media-arrow { flex-shrink: 0; color: #1f5caa; font-size: 20px; }
.gallery-status { color: #64748b; text-align: center; font-size: 13px; line-height: 1.8; }
.gallery-status:not(:empty) { padding: 30px 15px; }
.gallery-spinner { display: inline-block; width: 20px; height: 20px; margin-right: 9px; border: 2px solid #d8e5f5; border-top-color: #1f5caa; border-radius: 50%; vertical-align: middle; animation: gallery-spin .7s linear infinite; }
.gallery-load-more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.gallery-load-more { padding: 11px 24px; border: 1px solid #cdd9e6; border-radius: 30px; background: #fff; color: #1f5caa; font-size: 12px; font-weight: 700; cursor: pointer; }
.gallery-load-more:hover { background: #eaf1fa; }
.gallery-load-more:disabled { opacity: .5; cursor: wait; }
.gallery-back { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 30px; color: #1f5caa; font-size: 12px; font-weight: 700; text-decoration: none; }
.gallery-intro-compact { margin-bottom: 32px; }
.gallery-back > span { font-size: 19px; }
.gallery-image-fallback { display: grid; height: 100%; place-items: center; padding: 20px; color: #526377; font-size: 13px; text-align: center; }
@keyframes gallery-spin { to { transform: rotate(360deg); } }
@keyframes gallery-dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes gallery-media-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1023px) {
    .gallery-album-grid { gap: 20px; }
    .gallery-card-top { padding: 18px; }
    .gallery-card-bottom { left: 19px; right: 19px; bottom: 20px; }
    .gallery-edition-badge { font-size: 8px; padding: 7px 9px; }
    .gallery-card-year { font-size: 38px; }
    .gallery-card-bottom h3 { font-size: 24px; }
    .gallery-slide-dots { display: none; }
    .gallery-intro { align-items: flex-start; }
    .gallery-order { margin-top: 5px; }
}
@media (max-width: 767px) {
    .gallery-section { padding: 48px 0; }
    .gallery-container { width: calc(100% - 32px); }
    .gallery-intro { flex-direction: column; gap: 20px; margin-bottom: 28px; }
    .gallery-intro p { font-size: 13px; }
    .gallery-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .gallery-album-card { aspect-ratio: 4 / 5; border-radius: 17px; }
    .gallery-card-bottom h3 { font-size: 25px; }
    .gallery-card-kicker { font-size: 8px; letter-spacing: .1em; }
    .gallery-card-year { font-size: 32px; }
    .gallery-card-top { padding: 16px; }
    .gallery-edition-badge { max-width: 110px; font-size: 7px; }
    .gallery-dialog { width: calc(100% - 24px); max-height: 92dvh; border-radius: 20px; }
    .gallery-dialog-heading { padding: 22px 20px 18px; }
    .gallery-dialog-heading h2 { font-size: 27px; }
    .gallery-dialog-heading p { font-size: 12px; }
    .gallery-dialog-body { padding: 20px; }
    .gallery-dialog-heading .gallery-eyebrow { font-size: 9px; }
    .gallery-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .gallery-media-caption { padding: 11px; }
    .gallery-tab { padding: 9px 11px; font-size: 11px; }
    .gallery-tab svg { width: 15px; height: 15px; }
}
@media (max-width: 479px) {
    .gallery-album-grid { grid-template-columns: 1fr; gap: 22px; }
    .gallery-album-card { aspect-ratio: 4 / 4.5; }
    .gallery-card-bottom { left: 25px; right: 25px; bottom: 24px; }
    .gallery-card-bottom h3 { font-size: 32px; }
    .gallery-card-top { padding: 23px; }
    .gallery-card-year { font-size: 46px; }
    .gallery-edition-badge { max-width: none; font-size: 9px; }
    .gallery-slide-dots { display: flex; }
    .gallery-media-grid { grid-template-columns: 1fr; }
    .gallery-dialog-heading p { max-width: 235px; }
    .gallery-desktop-break { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-section *, .gallery-dialog *, .gallery-dialog[open] { animation: none !important; transition: none !important; }
    .gallery-album-card:hover, .gallery-media-card:hover, .gallery-media-card:hover img { transform: none; }
}
