/* Explain: Styles for the equipment gallery page, including layout and card design. */
/* ============================================================
   Equipment gallery — photos of the categories we supply,
   grouped by department. Navy + champagne gold, matching the site.
   ============================================================ */

.cw-gallery-section {
    background: var(--ivory);
}

.cw-gallery-group {
    margin-top: 3.25rem;
}

.cw-gallery-group-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--gold-line);
}

.cw-gallery-group-title {
    font-family: var(--font-heading);
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy);
}

.cw-gallery-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .cw-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .cw-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.cw-gallery-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.cw-gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-line-strong);
    box-shadow: var(--shadow-card);
}

.cw-gallery-media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--surface-alt);
}

.cw-gallery-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.cw-gallery-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 38, 95, 0) 58%, rgba(16, 38, 95, 0.32) 100%);
    pointer-events: none;
}

.cw-gallery-card:hover .cw-gallery-media img {
    transform: scale(1.05);
}

.cw-gallery-body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    flex: 1;
    padding: 1.15rem 1.2rem 1.3rem;
}

.cw-gallery-caption {
    font-size: 0.9rem;
    line-height: 1.68;
    color: var(--text-muted);
}

.cw-gallery-quote {
    margin-top: auto;
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .cw-gallery-card,
    .cw-gallery-media img {
        transition: none;
    }
}