/* ==========================================================================
   News & Events  (/news-events.html and /gallery/{slug})
   --------------------------------------------------------------------------
   Album cards on the index, photo grid and lightbox on an album page. Shell
   from inner-pages.css and category-page.css.
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   Index toolbar
   -------------------------------------------------------------------------- */

.sd-albums__bar {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px;
}

.sd-albums__search {
    position: relative; display: flex; align-items: center; flex: 1 1 320px;
}

.sd-albums__search > i {
    position: absolute; left: 18px; font-size: 15px; color: var(--sd-muted); pointer-events: none;
}

.sd-albums__search input {
    width: 100%; padding: 15px 46px; border: 1px solid var(--sd-line); border-radius: 50px;
    background: #fff; font-family: inherit; font-size: 16px; color: var(--sd-navy);
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none; appearance: none;
}

.sd-albums__search input::placeholder { color: #9AA8BE; }

.sd-albums__search input:focus {
    outline: none; border-color: var(--sd-blue); box-shadow: 0 0 0 3px rgba(18, 74, 154, .12);
}

.sd-albums__search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.sd-albums__clear {
    position: absolute; right: 12px; width: 28px; height: 28px; display: flex;
    align-items: center; justify-content: center; border: 0; border-radius: 50%;
    background: rgba(18, 74, 154, .08); color: var(--sd-navy); font-size: 12px;
    cursor: pointer; transition: background .2s ease, color .2s ease;
}

.sd-albums__clear:hover { background: var(--sd-orange); color: #fff; }

.sd-albums__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.sd-albums__count {
    margin: 0 0 22px; font-size: 13.5px; font-weight: 600; color: var(--sd-muted); min-height: 1.2em;
}

/* --------------------------------------------------------------------------
   Album cards
   -------------------------------------------------------------------------- */

.sd-albums__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}

.sd-album {
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--sd-line); border-radius: 16px; background: #fff;
    text-decoration: none; box-shadow: 0 6px 22px rgba(16, 38, 73, .06);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.sd-album[hidden] { display: none; }

.sd-album:hover {
    border-color: rgba(232, 106, 56, .4);
    box-shadow: 0 18px 40px rgba(16, 38, 73, .12);
    transform: translateY(-4px);
}

.sd-album__media {
    position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
    background: var(--sd-tint); line-height: 0;
}

.sd-album__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

.sd-album:hover .sd-album__media img { transform: scale(1.05); }

.sd-album__badge {
    position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 13px; border-radius: 50px; background: rgba(26, 54, 93, .85); color: #fff;
    font-size: 12.5px; font-weight: 700; line-height: 1;
}

.sd-album__play {
    position: absolute; inset: 0; margin: auto; width: 62px; height: 62px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    background: rgba(232, 106, 56, .94); color: #fff; font-size: 20px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .3); transition: transform .25s ease;
}

.sd-album:hover .sd-album__play { transform: scale(1.08); }

.sd-album__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }

.sd-album__type {
    margin-bottom: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--sd-muted);
}

.sd-album__title {
    margin-bottom: 16px; font-size: 18px; font-weight: 800; line-height: 1.35; color: var(--sd-navy);
}

.sd-album:hover .sd-album__title { color: var(--sd-orange-ink); }

.sd-album__more {
    display: inline-flex; align-items: center; gap: 9px; margin-top: auto;
    color: var(--sd-blue); font-size: 14.5px; font-weight: 700;
}

.sd-album__more i { font-size: 12px; transition: transform .25s ease; }

.sd-album:hover .sd-album__more { color: var(--sd-orange); }
.sd-album:hover .sd-album__more i { transform: translateX(4px); }

.sd-albums__empty {
    display: flex; align-items: flex-start; gap: 11px; margin: 4px 0 0; padding: 18px 20px;
    border-left: 3px solid var(--sd-orange); border-radius: 0 10px 10px 0;
    background: var(--sd-tint); font-size: 15px; line-height: 1.6; color: var(--sd-muted);
}

.sd-albums__empty[hidden] { display: none; }
.sd-albums__empty i { margin-top: 3px; color: var(--sd-orange); }

/* --------------------------------------------------------------------------
   Album page
   -------------------------------------------------------------------------- */

.sd-album__meta {
    display: flex; align-items: center; gap: 9px; margin: 16px 0 0;
    font-size: 14.5px; font-weight: 600; color: var(--sd-muted);
}

.sd-album__meta i { color: var(--sd-orange); }

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

.sd-shot {
    position: relative; display: block; padding: 0; aspect-ratio: 4 / 3; overflow: hidden;
    border: 1px solid var(--sd-line); border-radius: 12px; background: var(--sd-tint);
    cursor: zoom-in; line-height: 0;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.sd-shot:hover, .sd-shot:focus-visible {
    border-color: rgba(232, 106, 56, .5);
    box-shadow: 0 14px 30px rgba(16, 38, 73, .13);
    transform: translateY(-3px);
}

.sd-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

.sd-shot:hover img { transform: scale(1.06); }

.sd-shot__zoom {
    position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center; border-radius: 9px;
    background: rgba(26, 54, 93, .82); color: #fff; font-size: 13px;
    opacity: 0; transition: opacity .25s ease;
}

.sd-shot:hover .sd-shot__zoom, .sd-shot:focus-visible .sd-shot__zoom { opacity: 1; }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.sd-lb {
    position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center;
    justify-content: center; padding: 60px 70px; background: rgba(10, 20, 36, .93);
}

.sd-lb[hidden] { display: none; }

.sd-lb__img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}

.sd-lb__close, .sd-lb__nav {
    position: absolute; display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff;
    cursor: pointer; transition: background .2s ease;
}

.sd-lb__close:hover, .sd-lb__nav:hover { background: var(--sd-orange); }

.sd-lb__close { top: 22px; right: 22px; width: 44px; height: 44px; font-size: 18px; }

.sd-lb__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 17px; }
.sd-lb__nav--prev { left: 18px; }
.sd-lb__nav--next { right: 18px; }

.sd-lb__count {
    position: absolute; bottom: 22px; left: 0; right: 0; margin: 0; text-align: center;
    color: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 600;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .sd-albums__grid { grid-template-columns: minmax(0, 1fr); }
    .sd-albums__search { flex: 1 1 100%; }
    .sd-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sd-lb { padding: 56px 12px; }
    .sd-lb__nav { width: 40px; height: 40px; }
    .sd-lb__nav--prev { left: 6px; }
    .sd-lb__nav--next { right: 6px; }
    .sd-chip { padding: 9px 15px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .sd-album, .sd-album__media img, .sd-album__more i, .sd-album__play,
    .sd-shot, .sd-shot img, .sd-shot__zoom, .sd-albums__clear { transition: none !important; }
    .sd-album:hover, .sd-shot:hover { transform: none; }
    .sd-album:hover .sd-album__media img, .sd-shot:hover img { transform: none; }
}
