.cover-gallery { --cover-gap: 18px; --cover-visible: 4; position: relative; padding: 14px 28px 24px; background: linear-gradient(120deg,#14232c,#2c4a5c); color: #fff; }
.cover-gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 16px; }
.cover-gallery-toolbar > a { color: #e9edef; font-size: .8rem; font-weight: 600; }
.cover-gallery-toolbar > a i { margin-left: .4rem; color: #e9b852; }
.cover-gallery-controls:not([hidden]) { display: flex; gap: 8px; }
.cover-gallery-controls button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ffffff40; border-radius: 50%; background: #ffffff0d; color: #fff; cursor: pointer; }
.cover-gallery-controls [data-cover-next] { background: #d9a441; color: #fff; border-color: #d9a441; }
.cover-gallery-controls button:hover { background: #c9601f; }
.cover-gallery-track { display: flex; align-items: stretch; gap: var(--cover-gap); overflow-x: auto; scroll-snap-type: none; scrollbar-width: none; padding-bottom: 10px; overscroll-behavior-x: contain; }
.cover-gallery-track::-webkit-scrollbar { display: none; }
.cover-gallery-photo { display: block; flex: 0 0 calc((100% - (var(--cover-visible) - 1) * var(--cover-gap)) / var(--cover-visible)); min-width: 0; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 12px; scroll-snap-align: start; background: #263e4b; }
.cover-gallery-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cover-gallery-photo:hover img { transform: scale(1.03); }
.cover-gallery a:focus-visible, .cover-gallery button:focus-visible, .cover-gallery-track:focus-visible { outline: 3px solid #f0bf63; outline-offset: 3px; }
.cover-gallery-status { display: block; text-align: right; font-size: .7rem; color: #c8d4da; min-height: 1em; margin-top: 3px; }
.cover-gallery-dialog { position: fixed; inset: 0; margin: auto; max-width: 1100px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 48px 16px 16px; border: 0; border-radius: 16px; background: #14232c; color: #fff; }
.cover-gallery-dialog::backdrop { background: #07121ce6; backdrop-filter: blur(5px); }
.cover-gallery-dialog figure { margin: 0; }
.cover-gallery-dialog img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 150px); object-fit: contain; }
.cover-gallery-dialog figcaption { padding-top: 12px; text-align: center; font-size: .9rem; }
.cover-gallery-close { position: absolute; right: 12px; top: 8px; width: 34px; height: 34px; border: 1px solid #ffffff50; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.cover-gallery-close:focus-visible { outline: 3px solid #f0bf63; }
html:has(.cover-gallery-dialog[open]) { overflow: hidden; }
@media(min-width:1600px) { .cover-gallery { --cover-visible: 6; } }
@media(max-width:1100px) { .cover-gallery { --cover-visible: 3; } }
@media(max-width:760px) { .cover-gallery { --cover-visible: 2; --cover-gap: 12px; padding: 14px 18px 20px; } }
@media(max-width:460px) { .cover-gallery { --cover-visible: 1.2; } .cover-gallery-photo { aspect-ratio: 1.7 / 1; } }
@media(prefers-reduced-motion:reduce) { .cover-gallery-photo img { transition: none; } }
