#sisalto .trip-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
    gap: 48px;
    margin: 0;
}
#sisalto .trip-layout > .trip-sidebar,
#sisalto .trip-layout > .trip-body-column {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}
#sisalto .trip-layout > .trip-sidebar {
    grid-column: 2;
    grid-row: 1;
}
#sisalto .trip-layout > .trip-body-column {
    grid-column: 1;
    grid-row: 1;
}
.trip-intro-button {
    margin-top: 12px;
}
.trip-sidebar .trip-media-panel {
    display: block;
    padding: 16px;
    margin-bottom: 24px;
    min-width: 0;
    background: var(--pale, #eff6fa);
    border-radius: 6px;
}
.trip-sidebar .trip-image-hint {
    margin-bottom: 10px;;
    color: var(--muted, #5e707c);
    font-size: .8rem;
    line-height: 1.5;
    text-align: center;
}
.trip-sidebar .trip-main-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin: 0;
}
.trip-sidebar .trip-main-image a,
.trip-sidebar .trip-main-image picture {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-width: 0;
}
.trip-sidebar .trip-main-image img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 320px;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 4px;
}
.trip-sidebar .trip-gallery {
    display: block;
    min-width: 0;
    margin-top: 16px;
}
.trip-sidebar .trip-gallery[hidden] {
    display: none;
}
.trip-sidebar .trip-gallery h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.trip-sidebar .trip-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
}
.trip-sidebar .trip-gallery-grid > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 110px;
    padding: 6px;
    border-radius: 4px;
    background: transparent;
}
.trip-sidebar .trip-gallery-grid picture {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-width: 0;
}
.trip-sidebar .trip-gallery-grid img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 98px;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 2px;
}
.trip-sidebar .trip-gallery-note {
    margin: 12px 0 0;
    font-size: .8rem;
    line-height: 1.5;
    color: var(--muted, #5e707c);
}
@media (max-width: 991.98px) {
    #sisalto .trip-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    #sisalto .trip-layout > .trip-sidebar,
    #sisalto .trip-layout > .trip-body-column {
        grid-column: 1;
        grid-row: auto;
    }
    .trip-sidebar .trip-main-image img {
        max-height: 240px;
    }
    .trip-sidebar .trip-gallery-grid {
        display: flex;
        gap: 10px;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        padding: 4px 4px 10px;
        scroll-padding-inline: 4px;
    }
    .trip-sidebar .trip-gallery-grid > a {
        flex: 0 0 110px;
        scroll-snap-align: start;
    }
}
.trip-contact-panel h2 {
    font-size: 1.65rem;
    margin-bottom: 20px;
}
.trip-contact-panel > p:not(.eyebrow) {
    font-size: 1rem;
}
.trip-contact-panel .button {
    width: 100%;
    gap: 12px;
}
.trip-contact-help {
    margin: 28px 0 0;
}
.trip-contact-help a {
    display: inline-block;
    font-weight: 600;
    margin-top: 6px;
}
.trip-program {
    overflow-wrap: break-word;
}
.trip-program h3 {
    margin-top: 32px !important;
}
.trip-body-column > .form-panel {
    max-width: none;
}
.trip-form-name {
    padding: 15px 18px;
    background: var(--pale, #eff6fa);
    border-left: 3px solid var(--orange, #f2a065);
    font-size: 1rem;
}
#lomake {
    scroll-margin-top: 24px;
}
/* v6: VenoBox-style image viewer. Trip-page layout above stays unchanged. */
.trip-photo-dialog {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    overflow: hidden;
    font-family: inherit;
}
.trip-photo-dialog[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}
.trip-photo-dialog::backdrop {
    background: rgba(8, 13, 19, .96);
}
.trip-photo-stage {
    display: grid;
    place-items: center;
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 76px 92px 24px;
    touch-action: pan-y pinch-zoom;
}
.trip-photo-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .25);
    transition: opacity .18s ease;
}
.trip-photo-dialog.is-loading .trip-photo-image {
    opacity: .2;
}
.trip-photo-toolbar {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.trip-photo-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 48px;
    height: 48px;
    padding: 10px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, .8);
    cursor: pointer;
    pointer-events: auto;
    transition: color .18s ease, background .18s ease;
}
.trip-photo-control:hover {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}
.trip-photo-control:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .8);
    outline-offset: 3px;
}
.trip-photo-control svg {
    display: block;
    width: 27px;
    height: 27px;
}
.trip-photo-previous {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.trip-photo-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.trip-photo-close {
    top: max(16px, env(safe-area-inset-top));
    right: 20px;
    width: 44px;
    height: 44px;
}
.trip-photo-close svg {
    width: 23px;
    height: 23px;
}
.trip-photo-counter {
    position: absolute;
    top: max(26px, env(safe-area-inset-top));
    left: 30px;
    font-size: .78rem;
    line-height: 1.5;
    letter-spacing: .12em;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, .65);
}
.trip-photo-footer {
    max-height: 20vh;
    overflow: auto;
    padding: 0 72px max(28px, env(safe-area-inset-bottom));
}
.trip-photo-caption {
    max-width: 820px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .85);
    text-align: center;
    font-size: .93rem;
    line-height: 1.65;
}
.trip-photo-loader {
    position: absolute;
    left: calc(50% - 12px);
    top: calc(50% - 12px);
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, .2);
    border-top-color: rgba(255, 255, 255, .85);
    border-radius: 50%;
    animation: trip-photo-spin .7s linear infinite;
    pointer-events: none;
}
.trip-photo-error {
    color: #fff;
    text-align: center;
    font-size: .95rem;
}
.trip-photo-dialog [hidden] {
    display: none !important;
}
@keyframes trip-photo-spin {
    to {
        transform: rotate(360deg);
    }
}
@media (max-width: 767px) {
    .trip-photo-stage {
        padding: 70px 52px 20px;
    }
    .trip-photo-control {
        width: 44px;
        height: 44px;
        padding: 10px;
    }
    .trip-photo-previous {
        left: 4px;
    }
    .trip-photo-next {
        right: 4px;
    }
    .trip-photo-close {
        right: 10px;
    }
    .trip-photo-counter {
        left: 20px;
    }
    .trip-photo-footer {
        padding-inline: 30px;
    }
    .trip-photo-caption {
        font-size: .84rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .trip-photo-image,
    .trip-photo-control {
        transition: none;
    }
    .trip-photo-loader {
        animation: none;
    }
}
.trip-sidebar .trip-main-image a,
.trip-sidebar .trip-gallery-grid > a {
    cursor: zoom-in;
    transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .trip-sidebar .trip-main-image a:hover,
    .trip-sidebar .trip-gallery-grid > a:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(20, 40, 55, .14);
    }
}
.trip-sidebar .trip-main-image a:focus-visible,
.trip-sidebar .trip-gallery-grid > a:focus-visible {
    outline: 2px solid var(--orange, #f2a065);
    outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
    .trip-sidebar .trip-main-image a,
    .trip-sidebar .trip-gallery-grid > a {
        transition: none;
        transform: none;
    }
}
