﻿/* ================================================
   SIGNAGE PAGE â€” Image Layout Styles
   ================================================ */

/* â”€â”€ Hero Split (Overview section) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sg-hero-split {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sg-hero-text {
    flex: 1 1 auto;
}

.sg-hero-img {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sg-featured-img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    box-shadow: 0 8px 32px rgba(15, 155, 142, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sg-featured-img:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 48px rgba(15, 155, 142, 0.28);
}

/* hide the small companion image on mobile */
.sg-featured-img--sm {
    display: none;
}

/* â”€â”€ Spotlight Banner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sg-banner-section {
    position: relative;
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-banner-bg {
    object-fit: cover;
    object-position: center;
}

.sg-banner-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 1.5rem 2rem;
    background: linear-gradient(
        135deg,
        rgba(7, 96, 86, 0.72) 0%,
        rgba(15, 155, 142, 0.58) 100%
    );
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.sg-banner-overlay h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
    color: #fff;
}

.sg-banner-overlay p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* â”€â”€ Gallery / Masonry Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sg-gallery-section {
    /* re-use tf-section padding */
}

.sg-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.sg-tile {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    /* slight size variation gives a masonry feel */
}

/* Make every 3rd tile span 2 columns */
.sg-tile:nth-child(3n) {
    grid-column: span 2;
}

.sg-tile-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.sg-tile:nth-child(3n) .sg-tile-img {
    height: 260px;
}

/* Overlay */
.sg-tile-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.1rem;
    background: linear-gradient(
        to top,
        rgba(7, 96, 86, 0.85) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
}

.sg-tile:hover .sg-tile-overlay {
    opacity: 1;
}

.sg-tile:hover .sg-tile-img {
    transform: scale(1.06);
    filter: brightness(0.88);
}

.sg-tile-caption {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* â”€â”€ Tablet (481px+) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (min-width: 481px) {
    .sg-banner-section {
        height: 400px;
    }

    .sg-banner-overlay h2 {
        font-size: 1.9rem;
    }

    .sg-masonry {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }

    .sg-tile:nth-child(3n) {
        grid-column: span 1;
    }

    /* Span wide on bigger screens: first wide tile and 7th */
    .sg-tile:nth-child(1) {
        grid-column: span 2;
    }
}

/* â”€â”€ Tablet Landscape (769px+) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (min-width: 769px) {
    .sg-hero-split {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .sg-hero-text {
        flex: 0 0 58%;
    }

    .sg-hero-img {
        flex: 0 0 38%;
    }

    .sg-featured-img--sm {
        display: block;
    }

    .sg-banner-section {
        height: 460px;
        border-radius: 20px;
        margin-bottom: 2rem;
    }

    .sg-banner-overlay h2 {
        font-size: 2.2rem;
    }

    .sg-banner-overlay p {
        font-size: 1.1rem;
    }

    .sg-masonry {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }

    .sg-tile:nth-child(1),
    .sg-tile:nth-child(3n) {
        grid-column: span 1;
    }

    /* Make a couple tiles span 2 for visual rhythm */
    .sg-tile:nth-child(4) {
        grid-column: span 2;
    }

    .sg-tile-img {
        height: 240px;
    }

    .sg-tile:nth-child(4) .sg-tile-img {
        height: 260px;
    }
}

/* â”€â”€ Desktop (1025px+) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (min-width: 1025px) {
    .sg-hero-text {
        flex: 0 0 60%;
    }

    .sg-hero-img {
        flex: 0 0 36%;
    }

    .sg-banner-section {
        height: 520px;
    }

    .sg-banner-overlay h2 {
        font-size: 2.6rem;
    }

    .sg-masonry {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .sg-tile-img {
        height: 260px;
    }
}

/* â”€â”€ Dark / Light Theme â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dark .sg-featured-img {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.dark .sg-tile {
    background: #0a0a0a;
}

.light .sg-featured-img {
    box-shadow: 0 8px 32px rgba(15, 155, 142, 0.15);
}

