@charset "UTF-8";

/* =========================================================
   PHOTOS PAGE
   CORE / LOADING
========================================================= */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--kk-dark);
    background: var(--kk-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.70);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 1);
    z-index: 9999;
}

body.loading #loading-screen {
    display: flex;
}

body:not(.loading) #loading-screen {
    display: none;
}

#loading-screen img {
    width: 40px;
    height: 40px;
    background: transparent;
}

.photos-hidden {
    display: none !important;
}


/* =========================================================
   PHOTOS PAGE
   LAYOUT
========================================================= */

.photos-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.photos-shell {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.photos-content {
    width: 100%;
    max-width: 1120px;
    padding: 82px 20px 170px;
    box-sizing: border-box;
}


/* =========================================================
   PHOTOS PAGE
   HEADER
========================================================= */

.photos-header {
    margin: 0 0 30px 0;
    text-align: center;
}

.photos-title {
    margin: 0 0 4px 0;
    font-family: 'pol_kam_extra_light', sans-serif;
    font-size: 32px;
    font-weight: normal;
    text-transform: none;
    line-height: 1.10;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 1);
}

.photos-intro {
    margin: 0;
    font-family: 'pol_kam_extra_light', sans-serif;
    font-size: 15px;
    line-height: 1.32;
    text-transform: none;
    color: rgba(255, 255, 255, 0.66);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 1);
}


/* =========================================================
   PHOTOS PAGE
   SECTIONS
========================================================= */

.photos-section {
    margin: 0 0 46px 0;
}

.photos-section:last-child {
    margin-bottom: 0;
}

.photos-section-title {
    margin: 0 0 16px 0;
    font-family: 'pol_kam_extra_light';
    font-size: 20px;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
    color: rgba(255, 255, 255, 0.66);
    text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.85);
}


/* =========================================================
   PHOTOS PAGE
   GRID
========================================================= */

.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.photos-item {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(100, 155, 255, 0.16);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-user-drag: none;
    user-select: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.photos-item:hover {
    border-color: rgba(100, 155, 255, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.photos-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.02);
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}


/* =========================================================
   PHOTOS PAGE
   MODAL
========================================================= */

.photos-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
}

.photos-modal.is-open {
    display: block;
}

.photos-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 22, 0.96);
}

.photos-modal-dialog {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(56px, 76px) minmax(0, 1fr) minmax(56px, 76px);
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: center;
    padding: 24px 20px 18px;
    box-sizing: border-box;
}

.photos-modal-stage {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: calc(100vh - 150px);
}

.photos-modal-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 175px);
    width: auto;
    height: auto;
    border: none;
    border-radius: 4px;
    background: transparent;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
    -webkit-user-drag: none;
    user-select: none;
}

.photos-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    background: rgba(8, 14, 22, 0.28);
    border-radius: 999px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.2s ease;
    z-index: 5;
}

.photos-modal-close:hover {
    background: rgba(8, 14, 22, 0.46);
}

.photos-modal-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.92);
    transform-origin: center;
}

.photos-modal-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.photos-modal-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.photos-modal-arrow {
    position: relative;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(8, 14, 22, 0.34);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    z-index: 4;
}

.photos-modal-arrow:hover {
    background: rgba(8, 14, 22, 0.50);
    border-color: rgba(255, 255, 255, 0.28);
}

.photos-modal-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-top: 3px solid rgba(255, 255, 255, 0.92);
    border-right: 3px solid rgba(255, 255, 255, 0.92);
}

.photos-modal-arrow-prev {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
}

.photos-modal-arrow-prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.photos-modal-arrow-next {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
}

.photos-modal-arrow-next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.photos-modal-meta {
    display: none;
    grid-column: 2;
    grid-row: 2;
    margin-top: 10px;
    text-align: center;
    padding-bottom: 0;
}

.photos-modal-caption {
    font-family: 'pol_kam_extra_light', sans-serif;
    font-size: 15px;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.84);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 1);
}

.photos-modal-counter {
    margin-top: 2px;
    font-family: 'pol_kam_extra_light', sans-serif;
    font-size: 12px;
    line-height: 1.10;
    color: rgba(255, 255, 255, 0.50);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 1);
}


/* =========================================================
   PHOTOS PAGE
   TABLET
========================================================= */

@media screen and (max-width: 1024px) {
    .photos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   PHOTOS PAGE
   MOBILE
========================================================= */

@media screen and (max-width: 700px) {
    .photos-shell {
        padding: 0 12px;
    }

    .photos-content {
        max-width: 100%;
        padding: 82px 12px 150px;
    }

    .photos-header {
        margin-bottom: 24px;
    }

    .photos-title {
        font-size: 28px;
        margin-bottom: 3px;
    }

    .photos-intro {
        font-size: 15px;
        line-height: 1.30;
    }

    .photos-section {
        margin-bottom: 34px;
    }

    .photos-section-title {
        margin-bottom: 14px;
        font-size: 18px;
    }

    .photos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    /* -----------------------------------------------------
       MODAL MOBILE:
       Eine Linie: Pfeil - Meta - Pfeil
    ----------------------------------------------------- */

.photos-modal-dialog {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    justify-items: center;
    row-gap: 24px;
    padding:
        14px
        12px
        calc(120px + env(safe-area-inset-bottom))
        12px;
}

.photos-modal-stage {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    max-height: calc(100vh - 268px);
}

    .photos-modal-image {
        max-width: 100%;
        max-height: calc(100vh - 268px);
        border-radius: 4px;
    }

    .photos-modal-arrow {
        width: 42px;
        height: 42px;
        background: rgba(8, 14, 22, 0.42);
    }

    .photos-modal-arrow::before {
        width: 11px;
        height: 11px;
        border-top-width: 2px;
        border-right-width: 2px;
    }

    .photos-modal-arrow-prev {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
        align-self: center;
        margin: 0;
    }

    .photos-modal-arrow-next {
        grid-column: 3;
        grid-row: 2;
        justify-self: center;
        align-self: center;
        margin: 0;
    }

    .photos-modal-meta {
        display: block;
        grid-column: 2;
        grid-row: 2;
        margin-top: 0;
        padding-bottom: 0;
        text-align: center;
        transform: translateY(-2px);
        width: 100%;
    }

    .photos-modal-caption {
        font-size: 14px;
        line-height: 1.18;
    }

    .photos-modal-counter {
        font-size: 11px;
        line-height: 1.08;
        margin-top: 1px;
    }

    .photos-modal-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .photos-modal-close span {
        width: 16px;
    }
}


/* =========================================================
   PHOTOS PAGE
   SMALL MOBILE
========================================================= */

@media screen and (max-width: 420px) {
    .photos-title {
        font-size: 24px;
    }

    .photos-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

.photos-modal-dialog {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    justify-items: center;
    row-gap: 22px;
    padding:
        12px
        10px
        calc(124px + env(safe-area-inset-bottom))
        10px;
}

.photos-modal-stage {
    max-height: calc(100vh - 274px);
}

    .photos-modal-image {
        max-height: calc(100vh - 274px);
    }

    .photos-modal-arrow {
        width: 36px;
        height: 36px;
    }

    .photos-modal-arrow::before {
        width: 10px;
        height: 10px;
    }

    .photos-modal-meta {
        transform: translateY(-3px);
    }

    .photos-modal-caption {
        font-size: 13px;
        line-height: 1.16;
    }

    .photos-modal-counter {
        font-size: 10px;
    }
}