/* The Doorkeeper of Detroit post (June 2026) - Post-specific layout + gallery + lightbox
   Depends on:
   - /writing/writing-design.css
*/

.detroit-page {
    --detroit-gold: #c9a227;
}

.detroit-article .writing-prose blockquote {
    border-left-color: rgba(201, 162, 39, 0.72);
    border-color: rgba(201, 162, 39, 0.22);
    background: rgba(201, 162, 39, 0.10);
    color: rgba(255, 255, 255, 0.86);
}

.detroit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .detroit-grid {
        grid-template-columns: 1fr;
    }
}

.detroit-grid figure {
    margin: 0;
}

.detroit-grid img,
.detroit-single img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
    background: rgba(0, 0, 0, 0.18);
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.detroit-grid img:hover,
.detroit-single img:hover {
    transform: scale(1.01);
}

.detroit-single {
    text-align: center;
}

.detroit-hero {
    text-align: center;
}

.detroit-hero img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
    background: rgba(0, 0, 0, 0.18);
    cursor: zoom-in;
}

.detroit-caption {
    margin: 0.75rem 0 0 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
}

.detroit-caption--small {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.52);
}

.detroit-caption a {
    color: rgba(147, 197, 253, 0.92);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.detroit-caption a:hover {
    color: #ffffff;
    border-color: rgba(147, 197, 253, 0.65);
}

.detroit-closing {
    text-align: center;
    margin-top: 2.75rem;
    color: rgba(201, 162, 39, 0.95);
    font-weight: 850;
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Lightbox overlay */
.detroit-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.90);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.detroit-lightbox.is-active {
    display: flex;
    opacity: 1;
}

.detroit-lightbox-img {
    max-width: 92%;
    max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.55);
    transform: scale(0.94);
    transition: transform 0.25s ease;
}

.detroit-lightbox.is-active .detroit-lightbox-img {
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .detroit-grid img,
    .detroit-single img,
    .detroit-lightbox,
    .detroit-lightbox-img {
        transition: none;
    }
}
