/* Blocksy-vriendelijke frontend styling. De plugin blijft binnen de normale content container van het thema. */
.fwv-media-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 24px;
    align-items: stretch;
    margin: 0 0 36px;
}

.fwv-main-image,
.fwv-gallery-grid__item,
.fwv-card__image {
    background: var(--theme-palette-color-6, #f3f5f7);
    overflow: hidden;
    border-radius: var(--theme-border-radius, 0);
}

.fwv-main-image img,
.fwv-gallery-grid__item img,
.fwv-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.fwv-main-image { aspect-ratio: 16 / 10; }

.fwv-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.fwv-gallery-grid__item {
    aspect-ratio: 1 / 1;
    display: block;
}

.fwv-main-image a:hover img,
.fwv-gallery-grid__item:hover img,
.fwv-card__image:hover img { transform: scale(1.03); }

.fwv-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 46px;
    align-items: center;
    margin: 0 0 32px;
}

.fwv-specs--single {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 32px max(24px, calc((100vw - var(--theme-container-width, 1290px)) / 2));
    background: var(--theme-palette-color-8, #fff);
    border-top: 1px solid rgba(0,0,0,.04);
    border-bottom: 1px solid rgba(0,0,0,.04);
    justify-content: space-between;
}

.fwv-specs--archive,
.fwv-specs--card {
    gap: 14px 26px;
    margin: 0 0 18px;
}

.fwv-spec {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: var(--theme-heading-color, #0b2744);
    font-weight: 700;
    line-height: 1.2;
}

.fwv-spec__icon {
    color: var(--theme-palette-color-3, #29aee4);
    display: inline-flex;
    flex: 0 0 auto;
}

.fwv-spec__label { font-size: clamp(18px, 2vw, 30px); }
.fwv-specs--archive .fwv-spec__label,
.fwv-specs--card .fwv-spec__label { font-size: 18px; }
.fwv-specs--archive .fwv-spec__icon svg,
.fwv-specs--card .fwv-spec__icon svg { width: 25px; height: 25px; }

.fwv-content-block {
    max-width: 820px;
    margin-top: 24px;
}

.fwv-content-block h2,
.fwv-features h2 {
    color: var(--theme-heading-color, var(--theme-palette-color-1, #0b2744));
    font-size: clamp(22px, 2.4vw, 30px);
    margin: 0 0 18px;
}

.fwv-content { line-height: 1.75; }
.fwv-content p:first-child { margin-top: 0; }

.fwv-features {
    max-width: 860px;
    margin: 44px 0 0;
}

.fwv-feature-group { margin: 0 0 30px; }

.fwv-feature-group h3 {
    margin: 0 0 14px;
    color: var(--theme-heading-color, #0b2744);
    font-size: 20px;
    line-height: 1.2;
}

.fwv-feature-table {
    display: grid;
    gap: 0;
}

.fwv-feature-row {
    display: grid;
    grid-template-columns: minmax(150px, 34%) minmax(0, 1fr);
    gap: 18px;
    padding: 11px 12px;
    color: var(--theme-text-color, #1d2b3a);
    font-size: 15px;
    line-height: 1.45;
}

.fwv-feature-row:nth-child(odd) { background: #eef0f2; }
.fwv-feature-row__label { font-weight: 500; }
.fwv-feature-row__value { font-weight: 500; }

.fwv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.fwv-card {
    background: var(--theme-palette-color-8, #fff);
    border-radius: var(--theme-border-radius, 0);
    box-shadow: 0 8px 24px rgba(11, 39, 68, .10);
    overflow: hidden;
}

.fwv-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    position: relative;
    text-decoration: none;
}

.fwv-card__badge {
    position: absolute;
    right: 22px;
    bottom: -18px;
    background: #c00086;
    color: #fff;
    padding: 10px 20px;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 0 0 4px #fff;
}

.fwv-card__body { padding: 32px 28px 26px; }

.fwv-card__title {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.15;
}

.fwv-card__title a { color: inherit; text-decoration: none; }

.fwv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 18px;
    background: var(--theme-button-background-initial-color, var(--theme-palette-color-1, #0b2744));
    color: var(--theme-button-text-initial-color, #fff) !important;
    border-radius: var(--theme-button-border-radius, 0);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.fwv-button:hover {
    background: var(--theme-button-background-hover-color, var(--theme-palette-color-2, #12385f));
    color: var(--theme-button-text-hover-color, #fff) !important;
}

.fwv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .82);
}

.fwv-lightbox.is-active { display: flex; }
.fwv-lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; object-fit: contain; }
.fwv-lightbox__close {
    position: absolute;
    top: 18px;
    right: 22px;
    color: #fff;
    border: 0;
    background: transparent;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 900px) {
    .fwv-media-layout { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
    .fwv-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .fwv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fwv-specs--single { justify-content: flex-start; gap: 18px 32px; }
}

@media (max-width: 640px) {
    .fwv-main-image { aspect-ratio: 4 / 3; }
    .fwv-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .fwv-grid { grid-template-columns: 1fr; }
    .fwv-specs--single { padding-top: 24px; padding-bottom: 24px; }
    .fwv-spec { gap: 10px; }
    .fwv-spec__label { font-size: 20px; }
    .fwv-feature-row { grid-template-columns: 1fr; gap: 4px; }
    .fwv-card__title { font-size: 25px; }
}
