/* ==========================================================================
   TGL Property Bento Gallery — Stylesheet
   Requires: tgl-design-system.css
   ========================================================================== */

.tgl-bento-grid {
    display: flex;
    flex-direction: column;
    gap: var(--tgl-space-2);
    width: 100%;
}

.tgl-bento-img {
    width: 100%;
    display: block;
    object-fit: cover !important;
    border-radius: var(--tgl-radius-lg) !important;
    transition: filter var(--tgl-transition-slow);
}

.tgl-bento-main a:hover .tgl-bento-img,
.tgl-bento-thumb a:hover .tgl-bento-img {
    filter: brightness(0.9);
}

.tgl-bento-main {
    position: relative;
}

.tgl-bento-img--main {
    height: 390px !important;
}

.tgl-bento-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--tgl-space-2);
}

.tgl-bento-thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--tgl-radius-lg);
}

.tgl-bento-thumb a {
    display: block;
    width: 100%;
}

.tgl-bento-img--thumb {
    height: 130px !important;
}

/* "See all photos" pill */
.tgl-bento-pill {
    position: absolute;
    bottom: var(--tgl-space-2);
    right: var(--tgl-space-2);
    background-color: var(--tgl-bg-primary);
    color: var(--tgl-text-primary);
    font-family: var(--tgl-font-family);
    font-size: var(--tgl-font-size-xs);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--tgl-radius-sm);
    box-shadow: var(--tgl-shadow-sm);
    pointer-events: none;
    z-index: var(--tgl-z-base);
    white-space: nowrap;
    line-height: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: transform var(--tgl-transition-slow), box-shadow var(--tgl-transition-slow);
}

.tgl-bento-main:hover .tgl-bento-pill,
.tgl-bento-thumb:hover .tgl-bento-pill {
    transform: scale(1.1);
    box-shadow: var(--tgl-shadow-lg);
}

.tgl-bento-pill--mobile { display: none; }
.tgl-bento-pill--desktop { display: block; }

.tgl-bento-hidden { display: none; }

/* Tablet (768px – 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .tgl-bento-img--main { height: 320px !important; }
    .tgl-bento-img--thumb { height: 110px !important; }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .tgl-bento-img--main { height: 250px !important; }

    .tgl-bento-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    .tgl-bento-img--thumb { height: 100px !important; }

    .tgl-bento-thumb:nth-child(4) { display: none; }

    .tgl-bento-pill--mobile { display: block; }
    .tgl-bento-pill--desktop { display: none; }
}
