/* TripInStays gallery — navy/lime brand */

.tis-gallery-page {
    padding: 1.5rem 0 2rem;
    background:
        radial-gradient(900px 360px at 0% 0%, rgba(52, 152, 219, 0.08), transparent 55%),
        radial-gradient(700px 280px at 100% 10%, rgba(92, 184, 42, 0.08), transparent 50%),
        var(--sv-cream, #F3F7FB);
}

.tis-gallery-hero {
    max-width: 40rem;
    margin-bottom: 1.5rem;
}

.tis-gallery-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--sv-sky, #3498DB);
}

.tis-gallery-hero h1 {
    margin: 0 0 0.55rem;
    font-family: 'Roboto', system-ui, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    color: var(--sv-dark, #002D62);
    letter-spacing: -0.02em;
}

.tis-gallery-lead {
    margin: 0;
    color: var(--sv-muted, #5a6573);
    line-height: 1.55;
    font-size: 1.02rem;
}

.tis-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1.5rem;
}

.tis-gallery-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--sv-border, #D5E0EC);
    background: #fff;
    color: var(--sv-dark, #002D62);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tis-gallery-chip:hover,
.tis-gallery-chip.is-active {
    background: var(--sv-dark, #002D62);
    border-color: var(--sv-dark, #002D62);
    color: #fff;
}

.tis-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.tis-gallery-card {
    grid-column: span 12;
    background: #fff;
    border: 1px solid var(--sv-border, #D5E0EC);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 45, 98, 0.06);
    display: flex;
    flex-direction: column;
}

@media (min-width: 576px) {
    .tis-gallery-card { grid-column: span 6; }
}
@media (min-width: 992px) {
    .tis-gallery-card { grid-column: span 4; }
}

.tis-gallery-media {
    position: relative;
    aspect-ratio: 16 / 11;
    background: #d9e4ef center/cover no-repeat;
}

.tis-gallery-video-badge {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(0, 45, 98, 0.88);
    color: #fff;
    font-size: 1.1rem;
}

.tis-gallery-zoom {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--sv-dark, #002D62);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    box-shadow: 0 8px 24px rgba(0, 45, 98, 0.18);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, color 0.18s ease;
    cursor: pointer;
}

.tis-gallery-card:hover .tis-gallery-zoom,
.tis-gallery-card:focus-within .tis-gallery-zoom {
    opacity: 1;
    transform: scale(1);
}

.tis-gallery-zoom:hover {
    background: var(--sv-gold, #5CB82A);
    color: #fff;
}

.tis-gallery-meta {
    padding: 0.95rem 1.05rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.tis-gallery-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sv-dark, #002D62);
    line-height: 1.3;
}

.tis-gallery-loc {
    margin: 0;
    font-size: 0.82rem;
    color: var(--sv-muted, #5a6573);
}

.tis-gallery-desc {
    margin: 0.15rem 0 0;
    font-size: 0.9rem;
    color: #4a5563;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tis-gallery-link {
    margin-top: auto;
    padding-top: 0.55rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--sv-gold-dark, #3D9A1F);
    text-decoration: none;
}

.tis-gallery-link:hover { color: var(--sv-orange, #E67E22); }

.tis-gallery-empty {
    padding: 2.5rem 1.25rem;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--sv-border, #D5E0EC);
    border-radius: 1rem;
    color: var(--sv-muted, #5a6573);
}

/* Lightbox */
.tis-lb[hidden] { display: none !important; }
.tis-lb {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.tis-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 25, 55, 0.78);
    backdrop-filter: blur(4px);
}
.tis-lb-dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(92vh, 900px);
    background: #0a1f3d;
    border-radius: 1rem;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
}
.tis-lb-stage {
    position: relative;
    background: #061427;
    min-height: min(58vh, 520px);
    display: grid;
    place-items: center;
}
.tis-lb-img {
    max-width: 100%;
    max-height: min(58vh, 520px);
    object-fit: contain;
}
.tis-lb-frame {
    width: min(100%, 900px);
    aspect-ratio: 16 / 9;
    border: 0;
    max-height: min(58vh, 520px);
}
.tis-lb-caption {
    padding: 1rem 1.25rem 0.35rem;
    background: linear-gradient(180deg, #0d2a52, #082040);
}
.tis-lb-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7ED957;
    font-weight: 700;
}
.tis-lb-caption h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
}
.tis-lb-caption p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.45;
}
.tis-lb-property {
    display: inline-block;
    margin-top: 0.65rem;
    color: #7ED957;
    font-weight: 700;
    text-decoration: none;
}
.tis-lb-counter {
    margin: 0;
    padding: 0.55rem 1.25rem 0.9rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}
.tis-lb-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    z-index: 3;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.tis-lb-nav {
    position: absolute;
    top: 38%;
    z-index: 3;
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
}
.tis-lb-prev { left: 0.75rem; }
.tis-lb-next { right: 0.75rem; }
.tis-lb-nav:hover,
.tis-lb-close:hover { background: var(--sv-gold, #5CB82A); }

.tis-brand-logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}
.tis-brand-logo--sm { height: 40px; max-width: 180px; }
.sv-theme .sv-navbar .navbar-brand { padding-top: 0.15rem; padding-bottom: 0.15rem; }
.sv-theme .sv-navbar .navbar-brand .tis-brand-logo { height: 44px; }
