/* =========================================================
   KIILERICH VINE - VINTURER
   ========================================================= */

.vinturer-side {
    background: var(--color-bg, #f7f3ec);
    color: var(--color-text, #3d3028);
}

.vinturer-container {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
}

/* =========================================================
   INTRO
   ========================================================= */

.vinturer-intro {
    padding: 85px 0 75px;
    text-align: center;
}

.vinturer-intro .vinturer-container {
    max-width: 850px;
}

.vinturer-overlinje {
    display: block;
    margin-bottom: 15px;
    color: #9a7654;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.vinturer-intro h1 {
    margin: 0 0 28px;
    color: #493426;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.15;
}

.vinturer-intro p {
    margin: 0 auto 20px;
    font-size: 1.05rem;
    line-height: 1.85;
}

.vinturer-intro-tekst {
    color: #795c47;
    font-size: 1.2rem !important;
}

/* =========================================================
   GALLERI
   ========================================================= */

.vinturer-galleri-sektion {
    padding: 40px 0 95px;
}

.vinturer-galleri-top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 35px;
}

.vinturer-galleri-top h2 {
    margin: 0;
    color: #493426;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.vinturer-antal {
    margin: 0;
    color: #927c6c;
    font-size: 0.9rem;
}

.vinturer-collage {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: 150px;
    gap: 15px;
}

.vinturer-billede {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: none;
    border-radius: 18px;
    background: #e8ded2;
    cursor: pointer;
    appearance: none;
}

.vinturer-billede img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.vinturer-billede:hover img {
    transform: scale(1.08);
}

.vinturer-billede:focus-visible {
    outline: 3px solid #9a7654;
    outline-offset: 4px;
}

.vinturer-zoom {
    position: absolute;
    right: 15px;
    bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #493426;
    font-size: 1.7rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.vinturer-billede:hover .vinturer-zoom,
.vinturer-billede:focus-visible .vinturer-zoom {
    opacity: 1;
    transform: translateY(0);
}

/* Store og mellemstore billeder */

.vinturer-billede:nth-child(9n + 1) {
    grid-column: span 2;
    grid-row: span 3;
}

.vinturer-billede:nth-child(9n + 4) {
    grid-column: span 2;
    grid-row: span 2;
}

.vinturer-billede:nth-child(9n + 6) {
    grid-row: span 2;
}

.vinturer-billede:nth-child(9n + 8) {
    grid-column: span 2;
    grid-row: span 2;
}

/* =========================================================
   TOMT GALLERI
   ========================================================= */

.vinturer-tom {
    padding: 70px 25px;
    border: 1px dashed #d8c8b8;
    border-radius: 18px;
    background: #fffaf4;
    text-align: center;
}

.vinturer-tom h3 {
    margin: 0 0 15px;
    color: #493426;
}

.vinturer-tom p {
    margin: 0;
    color: #795c47;
}

/* =========================================================
   AFSLUTNING
   ========================================================= */

.vinturer-afslutning {
    padding: 85px 0;
    background: #eae0d3;
    text-align: center;
}

.vinturer-afslutning .vinturer-container {
    max-width: 760px;
}

.vinturer-afslutning h2 {
    margin: 0 0 22px;
    color: #493426;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.vinturer-afslutning p {
    margin: 0 auto 30px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.vinturer-knap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 15px 27px;
    border-radius: 9px;
    background: #654631;
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.vinturer-knap:hover {
    background: #493426;
    transform: translateY(-2px);
}

/* =========================================================
   LIGHTBOX
   ========================================================= */

.vinturer-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 70px 80px;
    background: rgba(15, 12, 10, 0.95);
}

.vinturer-lightbox.aktiv {
    display: flex;
}

.vinturer-lightbox-aaben {
    overflow: hidden;
}

.vinturer-lightbox-indhold {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}

.vinturer-lightbox-indhold img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.vinturer-lightbox-indhold p {
    margin: 15px 0 0;
    color: #fff;
    font-size: 0.9rem;
}

.vinturer-lightbox-luk,
.vinturer-lightbox-forrige,
.vinturer-lightbox-naeste {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.vinturer-lightbox-luk:hover,
.vinturer-lightbox-forrige:hover,
.vinturer-lightbox-naeste:hover {
    background: rgba(255, 255, 255, 0.25);
}

.vinturer-lightbox-luk {
    top: 20px;
    right: 25px;
}

.vinturer-lightbox-forrige {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.vinturer-lightbox-naeste {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .vinturer-collage {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 140px;
    }

}

/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 700px) {

    .vinturer-container {
        width: min(100% - 30px, 1400px);
    }

    .vinturer-intro {
        padding: 55px 0 45px;
    }

    .vinturer-intro p {
        font-size: 0.98rem;
    }

    .vinturer-galleri-sektion {
        padding: 25px 0 65px;
    }

    .vinturer-galleri-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .vinturer-collage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 115px;
        gap: 10px;
    }

    .vinturer-billede {
        border-radius: 12px;
    }

    .vinturer-billede:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .vinturer-billede:nth-child(7n + 1),
    .vinturer-billede:nth-child(7n + 5) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .vinturer-afslutning {
        padding: 60px 0;
    }

    .vinturer-lightbox {
        padding: 75px 12px;
    }

    .vinturer-lightbox-indhold img {
        max-height: calc(100vh - 180px);
    }

    .vinturer-lightbox-luk {
        top: 15px;
        right: 15px;
    }

    .vinturer-lightbox-forrige,
    .vinturer-lightbox-naeste {
        top: auto;
        bottom: 15px;
        transform: none;
    }

    .vinturer-lightbox-forrige {
        left: 25px;
    }

    .vinturer-lightbox-naeste {
        right: 25px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .vinturer-billede img,
    .vinturer-zoom,
    .vinturer-knap {
        transition: none;
    }

}
