/* Live 1.0.10: alleen presentatie van foto's en lange titels in de Weggeefhoek. */

/* Ook zeer lange productnamen houden alle overzichtskaarten netjes in het grid. */
.den-wrap .den-gw-card-heading strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-width: 0;
    flex: 1 1 120px;
    overflow-wrap: anywhere;
    line-height: 1.35;
    max-height: 2.7em;
}
.den-wrap .den-gw-card-photo {
    object-position: center center;
}
.den-wrap .den-gw-completed {
    margin: 25px 0 0;
    padding-top: 16px;
    border-top: 1px solid #e5dcea;
}
.den-wrap .den-gw-completed h2 {
    margin: 0 0 6px;
    color: #4c2a5f;
    font-size: clamp(17px, 3vw, 20px);
}
.den-wrap .den-gw-completed .den-gw-grid { margin-top: 12px; }
.den-wrap .den-gw-closed-note,
.den-wrap .den-gw-closed-receipt {
    padding: 15px 17px;
    border: 1px solid #e4d7ec;
    border-radius: 12px;
    background: #faf6fc;
    color: #4b3656;
    line-height: 1.55;
}
.den-wrap .den-gw-closed-receipt h2 { margin: 11px 0 5px; overflow-wrap: anywhere; }
.den-wrap .den-gw-closed-receipt .den-gw-secondary { display: inline-flex; margin-top: 9px; }

/* De rode teller is een melding, niet het paarse aantal aanbiedingen.
   Plaats hem NAAST het icoon: geen overlap met cadeau, titel of NIEUW-label. */
html body .den-wrap .den-gw-home-tile .den-gw-home-unread {
    top: 14px;
    left: 52px;
    right: auto;
    bottom: auto;
    z-index: 2;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 99px;
    font-size: 10px;
    line-height: 1;
}
html body .den-wrap .den-gw-home-tile .den-gw-home-unread[hidden] {
    display: none !important;
}

/* Een nieuw bericht onder 'Mijn meldingen' valt op als rode teller. */
html body .den-wrap .den-gw-notices .den-gw-count {
    background: #cc2936;
    color: #fff;
}

/* Hoofdfoto en overige foto's staan volledig zichtbaar, precies in het midden. */
.den-wrap .den-gw-gallery .den-gw-photo-trigger {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1.2;
    padding: 0;
    border: 0;
    border-radius: 11px;
    overflow: hidden;
    background: #f3eef6;
    cursor: zoom-in;
}
.den-wrap .den-gw-gallery .den-gw-photo-trigger:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 1.5;
}
.den-wrap .den-gw-gallery .den-gw-photo-trigger .den-gw-detail-photo {
    width: 100%;
    height: 100%;
    max-height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center center;
    border-radius: 0;
    background: transparent;
}
.den-wrap .den-gw-gallery .den-gw-photo-trigger:focus-visible {
    outline: 3px solid #7532a0;
    outline-offset: 2px;
}

/* Vergroten via dezelfde, uitsluitend voor leden toegankelijke privéfoto-URL. */
.den-wrap .den-gw-lightbox {
    max-width: min(94vw, 1100px);
    max-height: 94vh;
    max-height: 94dvh;
    margin: auto;
    padding: 40px 14px 15px;
    border: 1px solid #ffffff3a;
    border-radius: 16px;
    color: #fff;
    background: #160f20;
    box-shadow: 0 20px 65px #12091888;
    overflow: hidden;
}
.den-wrap .den-gw-lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}
.den-wrap .den-gw-lightbox::backdrop {
    background: rgba(13, 8, 20, .84);
}
.den-wrap .den-gw-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 76vh;
    max-height: 76dvh;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    border-radius: 8px;
}
.den-wrap .den-gw-lightbox-close {
    position: absolute;
    top: 6px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #ffffff24;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.den-wrap .den-gw-lightbox-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
@media (max-width: 540px) {
    html body .den-wrap .den-gw-home-tile .den-gw-home-unread {
        left: 47px;
        top: 12px;
    }
    .den-wrap .den-gw-gallery .den-gw-photo-trigger:first-child {
        aspect-ratio: 1.2;
    }
    .den-wrap .den-gw-lightbox {
        padding: 42px 8px 10px;
    }
}
