/* ==================================================
   Project Update detail page — light, grid-lined background;
   interactive image gallery (click a thumbnail to swap the big
   photo); title under the image; short + full description side by
   side; optional before/after slider and client review.
   Isolated rebuild, same pattern as the rest of the site.
   ================================================== */
:root {
    --ud-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
    --ud-orange: #ff5e14;
    --ud-ink: #14161a;
    --ud-muted: #6b7280;
    --ud-line: #e9eaee;
}

.amzy-update-section,
.amzy-update-section * {
    all: revert;
    box-sizing: border-box;
}

/* Simple light breadcrumb bar -- replaces the old dark photo hero,
   which fought with this page's lighter, grid-lined look. */
.amzy-update-crumbbar {
    background: #fff;
    border-bottom: 1px solid var(--ud-line);
    padding: 110px 0 18px;
}

.amzy-update-crumbbar .container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

.amzy-update-crumb {
    font-family: var(--ud-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--ud-muted);
}

.amzy-update-crumb a { color: var(--ud-muted); text-decoration: none; }
.amzy-update-crumb a:hover { color: var(--ud-orange); }

/* Subtle light grid-line background behind the whole page body */
.amzy-update-section {
    display: block;
    background-color: #fafafa;
    background-image:
        linear-gradient(to right, #eceef1 1px, transparent 1px),
        linear-gradient(to bottom, #eceef1 1px, transparent 1px);
    background-size: 42px 42px;
    padding-bottom: 90px;
    font-family: var(--ud-font);
}

.amzy-update-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Showcase: big image + clickable thumbnails --- */
.amzy-update-showcase { padding-top: 40px; }

.amzy-update-main-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(20, 22, 26, 0.1);
    background: #fff;
}

.amzy-update-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amzy-update-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.amzy-update-thumb {
    display: block;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    background: none;
    opacity: 0.65;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.amzy-update-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.amzy-update-thumb:hover { opacity: 1; }
.amzy-update-thumb.is-active { opacity: 1; border-color: var(--ud-orange); }

/* --- Title under the showcase --- */
.amzy-update-heading { padding: 32px 0 8px; }

.amzy-update-title {
    font-family: var(--ud-font);
    font-weight: 700;
    font-size: clamp(26px, 3.6vw, 38px);
    letter-spacing: -0.015em;
    color: var(--ud-ink);
    margin: 0 0 8px;
}

.amzy-update-date {
    display: inline-block;
    font-family: var(--ud-font);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--ud-orange);
}

/* --- Overview (short) + Project Details (full) side by side --- */
.amzy-update-desc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 24px 0 40px;
    border-bottom: 1px solid var(--ud-line);
    margin-bottom: 40px;
}

.amzy-update-desc-short h3,
.amzy-update-desc-full h3 {
    font-family: var(--ud-font);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--ud-ink);
    margin: 0 0 10px;
}

.amzy-update-desc-short p,
.amzy-update-desc-full p {
    font-family: var(--ud-font);
    font-size: 15px;
    line-height: 1.75;
    color: var(--ud-muted);
    margin: 0;
}

.amzy-update-compare-wrap,
.amzy-update-review { margin-bottom: 40px; }

.amzy-update-section-title {
    font-family: var(--ud-font);
    font-weight: 700;
    font-size: 22px;
    color: var(--ud-ink);
    margin: 0 0 20px;
}

/* --- Client review quote --- */
.amzy-update-review {
    background: #fff;
    border: 1px solid var(--ud-line);
    border-radius: 20px;
    padding: 36px 40px;
    text-align: center;
}

.amzy-update-review-icon {
    color: var(--ud-orange);
    font-size: 22px;
    opacity: 0.5;
    margin-bottom: 14px;
}

.amzy-update-review-text {
    font-family: var(--ud-font);
    font-style: italic;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ud-ink);
    margin: 0 0 14px;
}

.amzy-update-review-author {
    font-family: var(--ud-font);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ud-muted);
}

/* --- CTA --- */
.amzy-update-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.amzy-update-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ud-orange);
    color: #fff;
    font-family: var(--ud-font);
    font-weight: 600;
    font-size: 15px;
    padding: 15px 28px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.amzy-update-cta-btn:hover {
    background: #e54d0f;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.amzy-update-back {
    font-family: var(--ud-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--ud-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.amzy-update-back:hover { color: var(--ud-orange); text-decoration: none; }

/* Explicit Font Awesome declaration -- the all:revert boundary above
   strips the icon font/content the "fas" class would otherwise supply. */
.amzy-update-section i {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
}

/* --- Tablet --- */
@media (max-width: 900px) {
    .amzy-update-desc-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* --- Mobile: compact, no oversized text, minimal motion --- */
@media (max-width: 768px) {
    .amzy-update-crumbbar { padding: 90px 0 14px; }
    .amzy-update-crumb { font-size: 11.5px; }
    .amzy-update-section { background-size: 28px 28px; padding-bottom: 56px; }
    .amzy-update-showcase { padding-top: 24px; }
    .amzy-update-main-image { border-radius: 14px; }
    .amzy-update-thumbs { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 10px; }
    .amzy-update-thumb { border-radius: 8px; }

    .amzy-update-heading { padding: 22px 0 6px; }
    .amzy-update-title { font-size: 22px; margin-bottom: 6px; }
    .amzy-update-date { font-size: 11px; }

    .amzy-update-desc-grid { padding: 18px 0 28px; margin-bottom: 28px; }
    .amzy-update-desc-short h3, .amzy-update-desc-full h3 { font-size: 12px; }
    .amzy-update-desc-short p, .amzy-update-desc-full p { font-size: 13px; line-height: 1.65; }

    .amzy-update-compare-wrap, .amzy-update-review { margin-bottom: 28px; }
    .amzy-update-section-title { font-size: 18px; margin-bottom: 14px; }

    .amzy-update-review { padding: 24px 20px; border-radius: 16px; }
    .amzy-update-review-text { font-size: 14.5px; }

    .amzy-update-cta { flex-direction: column; align-items: stretch; gap: 14px; }
    .amzy-update-cta-btn { justify-content: center; padding: 13px 24px; font-size: 13.5px; }
    .amzy-update-back { text-align: center; }
}
