/* =========================================================================
   AutoDrive screenshots gallery — standalone page at /screenshots.
   Reuses adlp-* tokens from landing.css; scoped under .adss-*.
   ========================================================================= */

.adss {
    background: var(--ad-cream, #F5F0E6);
    color: var(--adlp-text, #38383D);
    padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 120px);
    min-height: calc(100vh - 68px);
}

.adss-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

.adss-head { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.adss-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(242,163,51,0.12); color: #B57419;
    font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
    margin-bottom: 16px;
}
.adss-eyebrow i { width: 14px; height: 14px; }
.adss-head h1 {
    font-size: clamp(32px, 5.2vw, 54px); font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.05;
    color: var(--ad-text-dark, #2D2D32); margin: 0 0 14px;
}
.adss-head p {
    font-size: clamp(15px, 1.6vw, 18px); color: #6E6E78;
    max-width: 620px; margin: 0 auto;
}

/* ---------- platform switcher ---------- */
.adss-tabs {
    display: inline-flex; gap: 4px; padding: 6px;
    background: #fff; border: 1px solid rgba(0,0,0,0.08);
    border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin: 0 auto 36px; flex-wrap: wrap; justify-content: center;
}
.adss-tabs-outer { text-align: center; }
.adss-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 999px;
    background: transparent; border: 0; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 600;
    color: #6E6E78;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.adss-tab i { width: 16px; height: 16px; }
.adss-tab:hover { color: #2D2D32; background: rgba(0,0,0,0.04); }
.adss-tab.active {
    background: var(--ad-orange, #F2A333); color: #fff;
    box-shadow: 0 6px 14px rgba(242,163,51,0.35);
}
.adss-tab-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; padding: 0 7px; height: 20px;
    border-radius: 999px; background: rgba(0,0,0,0.08);
    font-size: 11px; font-weight: 700;
}
.adss-tab.active .adss-tab-count { background: rgba(255,255,255,0.25); color: #fff; }

/* ---------- pane ---------- */
.adss-pane { display: none; }
.adss-pane.active { display: block; animation: adss-fade 0.3s ease; }
@keyframes adss-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.adss-pane-head {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 20px;
}
.adss-pane-title { font-size: 20px; font-weight: 700; color: #2D2D32; }
.adss-pane-sub { font-size: 14px; color: #6E6E78; }

/* ---------- carousel ---------- */
.adss-car { position: relative; }

/* Viewport sets height via aspect-ratio; slides fill it. */
.adss-car-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #f3ede1;
    box-shadow: 0 18px 38px rgba(0,0,0,0.10), 0 6px 14px rgba(0,0,0,0.05);
}
.adss-car.is-mobile .adss-car-viewport {
    aspect-ratio: 9 / 19.5;
    max-width: 380px;
    margin: 0 auto;
    background: #1b1b20;
}
.adss-car.is-wide .adss-car-viewport {
    aspect-ratio: 16 / 10;
    max-width: 1080px;
    margin: 0 auto;
}

.adss-car-track {
    display: flex; height: 100%;
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
    touch-action: pan-y;
}
.adss-car-slide {
    flex: 0 0 100%;
    position: relative;
    height: 100%;
    cursor: zoom-in;
}
.adss-car-slide img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}
.adss-car.is-mobile .adss-car-slide img { object-fit: cover; }
.adss-car.is-wide   .adss-car-slide img { object-fit: cover; object-position: top center; }

.adss-car-chip {
    position: absolute; top: 14px; left: 14px;
    padding: 5px 12px; border-radius: 999px;
    background: rgba(27,27,32,0.72); color: #fff;
    font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
    pointer-events: none;
}
.adss-car-expand {
    position: absolute; bottom: 14px; right: 14px;
    width: 38px; height: 38px; border-radius: 999px;
    background: rgba(255,255,255,0.92); color: #2D2D32;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    opacity: 0; transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.adss-car-slide:hover .adss-car-expand { opacity: 1; transform: translateY(0); }
.adss-car-expand i { width: 18px; height: 18px; }

/* Arrow buttons */
.adss-car-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 999px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.08);
    color: #2D2D32; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}
.adss-car-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 22px rgba(0,0,0,0.16);
}
.adss-car-btn:disabled {
    opacity: 0.45; cursor: default;
    transform: translateY(-50%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.adss-car-btn.prev { left: -8px; }
.adss-car-btn.next { right: -8px; }
.adss-car-btn i { width: 22px; height: 22px; }

@media (max-width: 720px) {
    .adss-car-btn { width: 40px; height: 40px; }
    .adss-car-btn.prev { left: 6px; }
    .adss-car-btn.next { right: 6px; }
    .adss-car-btn i { width: 18px; height: 18px; }
}

/* Footer: counter + dots */
.adss-car-foot {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; margin-top: 22px; flex-wrap: wrap;
}
.adss-car-counter {
    font-size: 13px; font-weight: 600; color: #6E6E78;
    letter-spacing: 0.04em;
    min-width: 56px; text-align: center;
}
.adss-car-dots {
    display: inline-flex; gap: 8px; align-items: center;
    flex-wrap: wrap; justify-content: center;
    max-width: 100%;
}
.adss-car-dot {
    width: 8px; height: 8px; border-radius: 999px;
    background: rgba(0,0,0,0.16);
    border: 0; padding: 0; cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, width 0.2s ease;
}
.adss-car-dot:hover { background: rgba(0,0,0,0.3); }
.adss-car-dot.active {
    background: var(--ad-orange, #F2A333);
    width: 22px;
}

/* Thumbnail strip */
.adss-car-thumbs {
    display: flex; gap: 10px;
    margin-top: 18px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}
.adss-car-thumbs::-webkit-scrollbar { height: 6px; }
.adss-car-thumbs::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.14); border-radius: 999px; }
.adss-car-thumb {
    flex: 0 0 auto;
    padding: 0; border: 2px solid transparent;
    background: #f3ede1;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
    opacity: 0.75;
}
.adss-car-thumb:hover { opacity: 1; transform: translateY(-2px); }
.adss-car-thumb.active {
    border-color: var(--ad-orange, #F2A333);
    opacity: 1;
}
.adss-car-thumb img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
}
.adss-car.is-mobile .adss-car-thumb { width: 46px; height: 100px; }
.adss-car.is-mobile .adss-car-thumb img { object-fit: cover; }
.adss-car.is-wide   .adss-car-thumb { width: 128px; height: 80px; }
.adss-car.is-wide   .adss-car-thumb img { object-position: top center; }

/* ---------- back link ---------- */
.adss-back {
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 20px;
    color: #6E6E78; font-size: 14px; font-weight: 500;
}
.adss-back:hover { color: #2D2D32; }
.adss-back i { width: 14px; height: 14px; }

/* ---------- lightbox ---------- */
.adss-lb {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(15,15,20,0.92);
    backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center;
    padding: clamp(20px, 4vw, 60px);
    animation: adss-lb-in 0.2s ease;
}
.adss-lb.open { display: flex; }
@keyframes adss-lb-in { from { opacity: 0; } to { opacity: 1; } }

.adss-lb-stage {
    position: relative; max-width: 100%; max-height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.adss-lb-img {
    max-width: 100%; max-height: 86vh;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
    background: #1b1b20;
    object-fit: contain;
}
.adss-lb-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.adss-lb-btn:hover { background: rgba(255,255,255,0.24); }
.adss-lb-btn.prev { left: 12px; }
.adss-lb-btn.next { right: 12px; }
.adss-lb-btn i { width: 22px; height: 22px; }

.adss-lb-close {
    position: absolute; top: 18px; right: 18px;
    width: 40px; height: 40px; border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.adss-lb-close:hover { background: rgba(255,255,255,0.24); }
.adss-lb-close i { width: 20px; height: 20px; }

.adss-lb-meta {
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
    padding: 8px 16px; border-radius: 999px;
    background: rgba(15,15,20,0.65);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.85);
    font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .adss-lb-btn.prev { left: 6px; }
    .adss-lb-btn.next { right: 6px; }
    .adss-lb-img { max-height: 78vh; }
}
