﻿/* ================================================
   THIN SHEET GALLERY â€” gallery.css
   Imported in addition to the shared thermoforming/page.css
   ================================================ */

/* â”€â”€ Hero split layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ts-hero-split {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

.ts-split-text {
    flex: 1;
}

.ts-split-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ts-split-text p {
    line-height: 1.75;
    margin-bottom: 0.9rem;
    font-size: 1rem;
}

.ts-split-image {
    flex: 1;
    width: 100%;
}

.ts-hero-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ts-hero-img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.ts-img-caption {
    text-align: center;
    font-size: 0.82rem;
    margin-top: 0.6rem;
    font-style: italic;
    opacity: 0.65;
}

/* Material badges */
.ts-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.ts-badge {
    display: inline-block;
    background: #e8f0fe;
    color: #0d6efd;
    border: 1px solid #b8d0fc;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, color 0.2s ease;
}

.dark .ts-badge {
    background: #1a2a4a;
    color: #93bbfd;
    border-color: #2d4a80;
}

/* â”€â”€ Gallery Section â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ts-gallery-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ts-gallery-intro {
    margin-bottom: 1.75rem;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 720px;
}

/* Masonry-style CSS grid */
.ts-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Gallery items */
.ts-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: #eee;
    aspect-ratio: 4 / 3;
}

.ts-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.ts-gallery-item:hover .ts-gallery-img {
    transform: scale(1.07);
}

/* Hover overlay with caption */
.ts-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 30, 80, 0.72) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.1rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.ts-gallery-item:hover .ts-gallery-overlay {
    opacity: 1;
}

.ts-gallery-overlay span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* â”€â”€ Full-width Banner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ts-banner-section {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.ts-banner-img-wrap {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 7;
}

.ts-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.ts-banner-img-wrap:hover .ts-banner-img {
    transform: scale(1.03);
}

.ts-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 30, 80, 0.75) 0%, rgba(10, 30, 80, 0.25) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.5rem;
    color: #fff;
}

.ts-banner-overlay h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    max-width: 480px;
}

.ts-banner-overlay p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.88);
    max-width: 420px;
    line-height: 1.6;
}

/* ================================================
   RESPONSIVE â€” Tablet (600px+)
   ================================================ */
@media (min-width: 600px) {
    .ts-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.1rem;
    }
}

/* ================================================
   RESPONSIVE â€” Tablet Landscape / Desktop (900px+)
   ================================================ */
@media (min-width: 900px) {

    .ts-hero-split {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .ts-split-text {
        flex: 1 1 48%;
    }

    .ts-split-image {
        flex: 1 1 48%;
    }

    .ts-split-text h2 {
        font-size: 2rem;
    }

    /* Masonry 3-column grid */
    .ts-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        /* variable-height rows for masonry feel */
        grid-auto-rows: 240px;
        gap: 1.1rem;
    }

    .ts-gallery-item {
        aspect-ratio: unset; /* height set by grid-auto-rows */
    }

    /* Tall item: occupies 2 rows */
    .ts-span-tall {
        grid-row: span 2;
    }

    /* Wide item: occupies 2 columns */
    .ts-span-wide {
        grid-column: span 2;
    }

    .ts-banner-img-wrap {
        aspect-ratio: 16 / 5;
    }

    .ts-banner-overlay h3 {
        font-size: 1.8rem;
    }

    .ts-banner-overlay p {
        font-size: 1rem;
    }
}

/* ================================================
   RESPONSIVE â€” Large Desktop (1200px+)
   ================================================ */
@media (min-width: 1200px) {

    .ts-gallery-grid {
        grid-auto-rows: 280px;
    }

    .ts-banner-overlay h3 {
        font-size: 2rem;
        max-width: 560px;
    }

    .ts-banner-overlay p {
        font-size: 1.05rem;
        max-width: 480px;
    }
}

