/* ========================================================================== */
/* Portfoliopages.css - INDIVIDUAL PROJECT / CASE STUDY PAGES                       */
/* Honours, VA Dundee, AcclimatizeMeNow, DUCT Gallery, future case studies   */
/* ========================================================================== */

/* ==========================================================================
   Portfolio Project Pages
   Shared by the main project case studies
   ========================================================================== */

.case-study-page {
    display: block;

    width: 100%;
    margin: 0;
    padding: 0;

    background-color: var(--bg-colour);
}

.case-container {
    display: flex;
    flex-direction: column;
    gap: 60px;

    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 180px;
}

.case-nav {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 20px;

    text-align: left;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #888888;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition: color 0.2s ease;
}

.back-btn:hover {
    color: var(--primary-colour);
}

.case-sub-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;

    margin: 30px auto 0;
}

.case-sub-nav .sub-link {
    padding: 8px 22px;

    background: rgba(255, 255, 255, 0.55);
    color: var(--text-muted);

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.case-sub-nav .sub-link:hover {
    background: #ffffff;
    color: var(--text-main);
}

.case-sub-nav .sub-link.active {
    background: #ffffff;
    color: var(--primary-colour);

    border-color: rgba(50, 129, 206, 0.18);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.case-sub-nav .sub-link:focus-visible {
    outline: 3px solid rgba(50, 129, 206, 0.25);
    outline-offset: 3px;
}

.version-view {
    display: none;
    flex-direction: column;
    gap: 60px;

    animation: caseFadeIn 0.5s ease forwards;
}

.version-view.active {
    display: flex;
}

@keyframes caseFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
   CASE STUDY HEADER / COPY
   ========================================================================== */

.case-header .project-type {
    color: #999999;

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-header h1 {
    margin: 10px 0 0;

    color: #1a1b23;

    font-size: 36px;
}

.section-number {
    margin-bottom: 5px;

    color: #1a1b23;

    font-size: 18px;
    font-weight: 700;
}

.section-divider {
    width: 40px;
    height: 3px;

    margin-bottom: 25px;

    background: var(--primary-colour);
}

.section-content p {
    max-width: 750px;

    color: #555555;

    font-size: 16px;
    line-height: 1.7;
}

.section-content p + p {
    margin-top: 15px;
}

.section-subtitle {
    margin-top: 40px;
    margin-bottom: 15px;

    color: #1a1b23;

    font-size: 20px;
    font-weight: 700;
}


/* ==========================================================================
   PROTOTYPE / HERO DISPLAY
   ========================================================================== */

.hero-display-card {
    height: 500px;
    padding: 0 !important;

    overflow: hidden;
}

.prototype-wrapper,
.iframe-container {
    width: 100%;
    height: 100%;
}

.iframe-container {
    position: relative;
}

.adobe-prototype {
    display: block;

    width: 100%;
    height: 100%;

    border: none;
}


/* ==========================================================================
   GOALS / RESEARCH
   ========================================================================== */

.goal-list {
    margin-bottom: 30px;
    padding-left: 0;

    list-style: none;
}

.goal-list li {
    display: flex;
    gap: 12px;

    margin-bottom: 15px;

    color: #555555;

    font-size: 16px;
    line-height: 1.6;
}

.goal-list .bullet {
    color: var(--primary-colour);

    font-weight: bold;
}

.goal-list strong {
    color: #333333;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;

    width: 100%;
    margin-top: 25px;
}

.research-card {
    display: flex;
    flex-direction: column;

    padding: 25px;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 20px;

    text-align: left;

    transition: transform 0.3s ease;
}

.research-card h4 {
    margin: 0 0 10px;

    color: var(--primary-colour);

    font-size: 15px;
    font-weight: 700;
}

.research-card p {
    margin: 0;

    color: #666666;

    font-size: 13px;
    line-height: 1.5;
}


/* ==========================================================================
   DESIGN SOLUTION / ARTEFACTS
   ========================================================================== */

.artefact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;

    margin-top: 30px;
}

.artefact-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 20px;
}

.image-container {
    display: flex;

    width: 100%;
    height: 220px;

    overflow: hidden;

    background-color: #f5f7fa;
}

.artefact-img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.wide-card {
    grid-column: 1 / -1;
}

.wide-card .image-container {
    height: 350px;
}

.wide-card .dual-image {
    display: flex;
    justify-content: space-around;
    gap: 20px;

    padding: 20px;
}

.wide-card .dual-image .artefact-img {
    width: 50%;
    height: auto;

    object-fit: contain;
}

.artefact-label {
    padding: 20px;
}

.artefact-label h4 {
    margin: 0 0 8px;

    color: #1a1b23;

    font-size: 17px;
}

.artefact-label p {
    margin: 0;

    color: #555555;

    font-size: 14px;
    line-height: 1.5;
}

.artefact-card:first-child .artefact-img {
    padding: 20px;

    object-fit: contain;
}

.link-card {
    align-items: center;

    background: #f0f7ff;

    border: 2px dashed var(--primary-colour);

    text-align: center;
}

.link-card i {
    margin-bottom: 12px;

    color: var(--primary-colour);

    font-size: 24px;
}


/* ==========================================================================
   RESULTS / COMING SOON
   ========================================================================== */

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    margin-top: 20px;
}

.result-item {
    padding: 30px;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 20px;
}

.result-item .label {
    display: block;

    margin-bottom: 10px;

    color: #999999;

    font-size: 11px;
    text-transform: uppercase;
}

.result-value {
    margin: 0;

    color: var(--primary-colour);

    font-size: 28px;
    font-weight: 700;
}

.coming-soon-card {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 500px;

    background: linear-gradient(145deg, #ffffff, #f0f4f8);

    border: 1px solid rgba(0, 0, 0, 0.05);

    text-align: center;
}

.coming-soon-content {
    max-width: 500px;
    padding: 40px;
}

.icon-pulse {
    margin-bottom: 20px;

    color: var(--primary-colour);

    font-size: 3rem;

    animation: pulse 2s infinite;
}

.coming-soon-content h2 {
    margin-bottom: 15px;

    color: #1a1b23;

    font-size: 32px;
}

.coming-soon-content p {
    margin-bottom: 30px;

    color: #666666;

    line-height: 1.6;
}

.status-tag {
    display: inline-block;

    padding: 6px 16px;

    background: rgba(50, 129, 206, 0.1);
    color: var(--primary-colour);

    border-radius: 100px;

    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* ==========================================================================
   CASE STUDY EXTERNAL LINKS / VA DUNDEE EXTRAS
   ========================================================================== */

.case-external-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;

    margin-top: 1.5rem;
}

.live-demo-link,
.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 0.8rem 1.5rem;

    background-color: var(--primary-colour);
    color: #ffffff;

    border-radius: 50px;

    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.github-link {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.live-demo-link:hover,
.github-link:hover {
    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.prototype-container {
    margin: 2rem 0;
    padding: 1.5rem;

    background: #fdf8f3;

    border: 1px solid #f0f0f0;
    border-radius: 24px;
}

.prototype-image-wrapper {
    position: relative;

    display: block;

    width: 100%;
    height: 500px;

    overflow: hidden;

    background: #1a1b23;

    border-radius: 12px;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);

    cursor: zoom-in;
}

.va-img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: top;

    transition: transform 0.5s ease;
}

.prototype-container:hover .va-img {
    transform: scale(1.02);
}

.research-grid-VA {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.research-card-VA h3 {
    margin-bottom: 10px;

    color: var(--text-main);

    font-size: 1.2rem;
}

.result-value-VA {
    margin: 10px 0;

    color: #2ecc71;

    font-size: 2.5rem;
}


/* ==========================================================================
   DESIGN SOLUTION BENTO / LIGHTBOX
   ========================================================================== */

.cs-design-persona-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    margin-bottom: 25px;
}

.cs-design-artefact-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.cs-design-bento-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--card-white);

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 25px;

    box-shadow: var(--box-shadow);
}

.cs-design-img-box {
    width: 100%;
    height: 200px;

    overflow: hidden;

    background-color: #f8f9fa;

    border-bottom: 1px solid rgba(0, 0, 0, 0.05);

    cursor: grab;
}

.cs-design-artefact-row .cs-design-img-box {
    height: 280px;
}

.cs-design-bento-img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cs-design-bento-content {
    padding: 24px;
}

.cs-design-bento-content h4 {
    margin: 0 0 10px;

    color: var(--text-main);

    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.cs-design-bento-content p {
    margin: 0;

    color: var(--text-muted);

    font-size: 14px;
    line-height: 1.6;
}

.cs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(0, 0, 0, 0.9);

    backdrop-filter: blur(5px);
}

.cs-lightbox.active {
    display: flex;
}

.cs-lightbox-content {
    position: relative;

    max-width: 90%;
    max-height: 85vh;
}

.cs-lightbox-img {
    width: 100%;
    height: auto;
    max-height: 85vh;

    object-fit: contain;

    border-radius: 8px;

    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.cs-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;

    background: none;
    color: #ffffff;

    border: none;

    font-size: 35px;

    cursor: pointer;

    transition: transform 0.2s ease;
}

.cs-lightbox-close:hover {
    transform: scale(1.2);
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .case-container {
        gap: 45px;
        padding: 30px 0 120px;
    }

    .case-nav {
        margin-top: 25px;
        padding: 0;
    }

    .case-header h1 {
        font-size: 30px;
    }

    .hero-display-card,
    .prototype-image-wrapper {
        height: 360px;
    }

    .artefact-grid,
    .result-grid,
    .cs-design-persona-row,
    .cs-design-artefact-row {
        grid-template-columns: 1fr;
    }

    .wide-card .dual-image {
        flex-direction: column;
    }

    .wide-card .dual-image .artefact-img {
        width: 100%;
    }

    .wide-card .image-container {
        height: auto;
    }

    .cs-design-img-box,
    .cs-design-artefact-row .cs-design-img-box {
        height: auto;
        min-height: 220px;
    }

    .cs-lightbox {
        padding: 20px;
    }
}

/* ==========================================================================
   ACCLIMATIZEMENOW CASE STUDY
   Page-specific styles loaded after case-study.css
   ========================================================================== */

.acme-section {
    margin: 5px;
}

.acme-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.acme-card {
    padding: 2rem;

    background: var(--card-white);

    border: 1px solid #f0f0f0;
    border-radius: 20px;
}

.acme-strategy-box {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 3rem;

    background: var(--card-white);

    border-left: 5px solid #333333;
    border-radius: 0 15px 15px 0;
}

.acme-strategy-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;

    color: #222222;

    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.acme-strategy-box p {
    margin-bottom: 1.5rem;

    color: #444444;

    line-height: 1.7;
}

.acme-goal-list {
    margin-top: 1.5rem;
    padding: 0;

    list-style: none;
}

.acme-goal-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 1.25rem;

    color: #333333;

    line-height: 1.5;
}

.acme-bullet {
    margin-top: 2px;

    color: #333333;

    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
}

.acme-goal-list strong {
    color: #000000;

    font-weight: 700;
}

.acme-persona-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.acme-persona-img-container {
    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    cursor: pointer;
}

.acme-persona-img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: top;
}

.acme-persona-info {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 2.5rem;
}

.acme-flow-container {
    margin: 2rem 0;
    padding: 2rem;

    background: var(--card-white);

    border: 1px solid #eeeeee;
    border-radius: 12px;

    transition: transform 0.3s ease;
}

.acme-flow-container:hover {
    transform: translateY(-5px);
}

.acme-table-container {
    margin-top: 1.5rem;

    overflow-x: auto;

    border: 1px solid #eeeeee;
    border-radius: 12px;
}

.acme-analysis-table {
    width: 100%;

    border-collapse: collapse;

    background: #ffffff;

    text-align: left;
}

.acme-analysis-table th,
.acme-analysis-table td {
    padding: 1.2rem;

    border-bottom: 1px solid #eeeeee;
}

.acme-analysis-table th {
    background: var(--card-white);

    font-size: 0.85rem;
    font-weight: 700;
}

.acme-check {
    color: var(--status-positive);

    font-weight: bold;
    text-align: center;
}

.acme-cross {
    color: var(--status-negative);

    font-weight: bold;
    text-align: center;
}

.acme-visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.acme-img-wrapper {
    width: 100%;
    height: 450px;

    margin-bottom: 1.5rem;

    overflow: hidden;

    background: #eeeeee;

    border-radius: 12px;

    cursor: pointer;
}

.acme-fit-img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: top;
}

.acme-subtitle {
    margin: 2rem 0 1rem;

    font-size: 1.25rem;
    font-weight: 700;
}

.acme-margin-v {
    margin: 3rem 0;
}

.acme-label {
    font-size: 0.8rem;
    text-transform: uppercase;

    opacity: 0.6;
}

.acme-result-value {
    margin-top: 0.5rem;

    color: #333333;

    font-size: 2.5rem;
}

.acme-result-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 250px;

    background: var(--card-white);

    text-align: center;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.acme-result-card:hover {
    transform: translateY(-5px);

    background: #ffffff;

    border-color: #333333;
}

.acme-result-card p {
    color: #555555;

    font-size: 0.9rem;
    line-height: 1.4;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .acme-strategy-box {
        padding: 2rem 1.5rem;
    }

    .acme-persona-layout,
    .acme-visual-grid {
        grid-template-columns: 1fr;
    }

    .acme-persona-info {
        padding: 1.75rem;
    }

    .acme-img-wrapper {
        height: 340px;
    }
}

/* ==========================================================================
   DUCT GALLERY
   Page-specific styles
   ========================================================================== */

.duct-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;

    max-width: 1450px;
    margin: 40px auto;
    padding: 0 20px 5rem;

    align-items: start;
}

.duct-gallery-grid .acme-card.duct-gallery-card {
    display: flex;
    flex-direction: column;

    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;

    overflow: hidden;

    background-color: var(--card-white, #ffffff);

    border-radius: 16px;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.duct-gallery-card .duct-img-wrapper {
    width: 100%;

    overflow: hidden;
}

.duct-gallery-card .acme-fit-img {
    display: block;

    width: 100%;
    height: auto;
}

.duct-gallery-card .duct-card-info {
    padding: 1.5rem;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .duct-gallery-grid {
        grid-template-columns: 1fr;

        margin: 20px auto;
        padding: 0 0 110px;
    }
}

/* ==========================================================================
   HONOURS PROJECT REFINEMENTS
   Scoped to the 2023 / 2026 Honours views so these changes do not affect
   the other case studies that share this stylesheet.
   ========================================================================== */

#view-2023 .case-header h1,
#view-2026 .case-header h1 {
    max-width: 780px;

    line-height: 1.15;
    letter-spacing: -0.02em;
}

#view-2023 .section-content,
#view-2026 .section-content {
    max-width: 780px;
}

#view-2023 .section-content p,
#view-2026 .section-content p {
    max-width: none;
}

#view-2023 .research-card,
#view-2023 .artefact-card,
#view-2023 .result-item {
    height: 100%;
}

#view-2023 .research-card {
    justify-content: flex-start;
}

#view-2023 .result-item {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 150px;
}

#view-2023 .result-item .result-value {
    line-height: 1.2;
}

#view-2023 .reflection-section .section-content {
    padding-left: 22px;

    border-left: 3px solid rgba(50, 129, 206, 0.28);
}

#view-2026 .coming-soon-card {
    height: auto;
    min-height: 360px;
}

#view-2026 .coming-soon-content {
    max-width: 580px;
}

#view-2026 .coming-soon-content p {
    line-height: 1.7;
}


/* ==========================================================================
   HONOURS PROJECT - MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    #view-2023 .case-header h1,
    #view-2026 .case-header h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    #view-2023 .reflection-section .section-content {
        padding-left: 16px;
    }

    #view-2023 .result-item {
        min-height: 130px;
    }

    #view-2026 .coming-soon-card {
        min-height: 320px;
    }

    #view-2026 .coming-soon-content {
        padding: 30px 24px;
    }
}

@media (max-width: 480px) {
    #view-2023 .case-header h1,
    #view-2026 .case-header h1 {
        font-size: 27px;
    }

    #view-2023 .reflection-section .section-content {
        padding-left: 14px;
    }

    #view-2026 .coming-soon-content h2 {
        font-size: 27px;
    }
}

/* ==========================================================================
   HONOURS PROJECT - RECRUITER-FRIENDLY PROJECT FACTS
   ========================================================================== */

#view-2023 .project-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
}

#view-2023 .project-fact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

#view-2023 .fact-label {
    color: var(--primary-colour);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

#view-2023 .fact-value {
    color: var(--text-main);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

#view-2023 .setback-subtitle {
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 17px;
}

#view-2023 .setback-subtitle:first-child {
    margin-top: 0;
}

@media (max-width: 900px) {
    #view-2023 .project-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #view-2023 .project-facts {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    #view-2023 .project-fact {
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    #view-2023 .project-fact:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }
}

/* ==========================================================================
   DUCT RESPONSIVE FIXES
   Prevent the social-media concept cards from remaining side-by-side on
   narrow Samsung Internet / mobile layouts.
   ========================================================================== */

.duct-gallery-grid {
    width: 100%;
    max-width: 100%;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    box-sizing: border-box;
}

.duct-gallery-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box;
}

.duct-gallery-card .duct-img-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding: 20px 20px 0;

    box-sizing: border-box;
    overflow: hidden;
}

.duct-gallery-card .acme-fit-img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto !important;

    object-fit: contain;

    box-sizing: border-box;
}

.duct-gallery-card .duct-card-info {
    width: 100%;
    min-width: 0;

    box-sizing: border-box;
}

.duct-gallery-card .duct-card-info h3,
.duct-gallery-card .duct-card-info p {
    max-width: 100%;

    overflow-wrap: normal;
    word-break: normal;
}


/* Force a single full-width card before Samsung Internet can squeeze
   the two cards into narrow side-by-side columns. */
@media (max-width: 900px) {

    .duct-gallery-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 20px 0 40px !important;
        padding: 0 !important;

        gap: 24px;
    }

    .duct-gallery-card {
        grid-column: 1 / -1 !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;
    }

    .duct-gallery-card .duct-img-wrapper {
        padding: 20px 20px 0;
    }

    .duct-gallery-card .acme-fit-img {
        width: auto;
        max-width: 100%;
        max-height: 520px;
    }

    .duct-gallery-card .duct-card-info {
        padding: 1.5rem;
    }
}


@media (max-width: 480px) {

    .duct-gallery-card .duct-img-wrapper {
        padding: 16px 16px 0;
    }

    .duct-gallery-card .duct-card-info {
        padding: 1.25rem;
    }
}