html {
    /* Prevent Chrome pull-to-refresh */
    overscroll-behavior: none;
}

/* ==========================================================================
   Map header and menu
   ========================================================================== */

/* MAP HEADER
   ========================================================================== */

.map-header {
    /* Position */
    position: fixed;
    height: 48px;
    left: 0;
    right: 0;

    /* Spacing */
    margin-block: 8px 0;
    margin-inline: 8px;
    padding: 0;

    /* Content */
    display: flex;
    flex-direction: column;

    /* Transition */
    will-change: height, margin, padding, opacity;
    transition-property: height, margin, padding, opacity;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.5, 1);

    /* Over overlay */
    z-index: 21;
}
/* Open */
.map-header.is-menu-open,
.map-header.is-maps-open {
    /* Fill height */
    height: calc(100% + 42px);

    /* Spacing */
    margin: 0;
    padding-block: 8px 0;
    padding-inline: 8px;

    /* Appearance */
    border-radius: 0;
}

/* Map menu content */
.map-header-menu,
.map-header-maps {
    /* Height */
    height: 0;
    will-change: height;
    transition: height 0.2s cubic-bezier(0.25, 0.8, 0.5, 1);

    /* Inner spacing */
    margin-block: 0 !important; /* override ul list reset */
    margin-inline: -8px !important;

    /* Scrolling */
    overflow-x: hidden;
    overflow-y: auto;
}
/* Show border while scrolling  */
.is-menu-open .map-header-menu.is-scrolling,
.is-maps-open .map-header-maps.is-scrolling {
    border-top: solid 1px var(--border-color);
}
/* Hide scrollbar while animating */
.is-animating .map-header-menu,
.is-animating .map-header-maps {
    overflow-y: hidden;
}
@media (min-height: 436px) {
    .map-header-menu {
        overflow-y: hidden !important;
    }
}
/* Open */
.is-menu-open .map-header-menu,
.is-maps-open .map-header-maps {
    /* Height */
    height: calc(100% - 48px);
}

/* Desktop */
@media (min-width: 840px) {
    .map-header {
        /* Auto grow */
        right: auto;
        max-width: 560px;
    }
    .map-header.is-menu-open,
    .map-header.is-maps-open {
        /* Fill height */
        height: 100%;
    }

    /* Trips list max width */
    .map-header-maps {
        max-width: 560px;
        will-change: height, max-width;
        transition-property: height, max-width;
        transition-duration: 0.2s;
        transition-timing-function: cubic-bezier(0.25, 0.8, 0.5, 1);
    }
    .map-header:not(.is-maps-open) .map-header-maps {
        max-width: 320px;
    }
}

/* Map header overlay */
.overlay.map-header-overlay {
    position: fixed;
    z-index: 20;
}

/* MAP HEADER BOX
   ========================================================================== */

.map-header-box {
    /* Height */
    height: 48px;
    min-height: 48px; /* Safari height fix */

    /* Margin bottom */
    margin-bottom: 6px;

    /* Content */
    display: flex;
}

/* Buttons */
.map-header-box .btn {
    width: 48px;
    min-width: 48px;
    height: 48px;
}
.map-header-box > .menu-button {
    margin-inline-start: 4px;
}
.map-header-box > .share-button {
    margin-inline-end: 4px;
}

/* MAP HEADER TITLE
   ========================================================================== */

.map-header-title {
    width: 100%;

    flex-shrink: 1;
    padding-inline: 6px;

    /* Prevent text selection */
    -webkit-user-select: none;
    user-select: none;
}
.map-header-title[onclick] {
    cursor: pointer;
}
/* Dropdown icon */
.map-header-title .svg-icon {
    flex-shrink: 0;
    margin-block: 0 -2px;
    margin-inline: 1px -4px;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.5, 1);
}
.is-maps-open .map-header-title .svg-icon {
    transform: translateY(0.5px) rotateX(-180deg);
}
.map-header h1 {
    line-height: 48px;
    font-size: 18px;
}

/* MAP MENU
   ========================================================================== */

.map-header-menu {
    /* Width */
    min-width: 280px;

    /* Content */
    display: flex;
    flex-direction: column;
}

/* Spacer */
/* .map-header-menu .flex-grow { */
/* Space between: toolbar, margins, nav items, separator, footer */
/* min-height: calc(100vh - 48px - 16px - 6px - 6 * 52px - 12px - 150px); */
/* Edit: done in JS */
/* } */

/* Map menu footer */
.map-header-menu footer > div.padding {
    /* Content */
    display: flex;
    align-items: center;
}
.map-header-menu footer .profile-photo {
    margin-inline-end: 16px;
}
/* Profile photo */
.map-header-menu footer .profile-photo img {
    display: block;
    border-radius: 50%;
    object-fit: cover;
}
.photo-placeholder {
    margin-top: -6px;
}
/* Profile info */
.map-header-menu footer .footer-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* Profile actions (login, create map, open admin) */
.map-header-menu footer .footer-links {
    margin-top: 4px;
    display: flex;
    align-items: center;
}
.map-header-menu footer .footer-links .btn {
    font-size: 13px;
}

/* ==========================================================================
   Panels
   ========================================================================== */

/* MAP PANELS
   ========================================================================== */

html,
body,
.panels {
    /* Full height */
    width: 100%;
    height: 100%;
}
html.page-map,
html.page-map body {
    /* Prevent Chrome address bar bug */
    overflow: hidden;
}
.panels {
    overflow-y: auto;

    /* Scroll snapping */
    -webkit-scroll-snap-type: y mandatory;
    scroll-snap-type: y mandatory;
    scroll-snap-stop: always;
    /* overscroll-behavior-y: contain */

    /* Hide scrollbar */
    -webkit-overflow-scrolling: touch; /* Safari support */
    scrollbar-width: none;
}
.panels::-webkit-scrollbar {
    display: none;
}
/* Disable CSS scroll snapping during JS scroll animations */
.panels.is-smooth-scrolling {
    -webkit-scroll-snap-type: none;
    scroll-snap-type: none;
}

/* Panel */
.panels > .panel {
    scroll-snap-align: start;
}

/* Map PANEL */
.map-panel {
    /* Height (full page - top panel - timeline header) */
    height: calc(72% - 60px);
}

/* Preview PANEL */
.panels > .preview-panel {
    height: 0;
}

/* Top panel (keeps map visible on mobile) */
.top-panel {
    height: 28%;
}

/* Map content */
.map-panel .map-panel-content {
    /* Position */
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 42px;

    /* Slide performance (up on mobile and left on desktop) */
    will-change: transform;
}
/* Desktop */
@media (min-width: 840px) {
    .map-panel .map-panel-content {
        bottom: 0;
        right: var(--timeline-width) !important;
        will-change: unset;
    }
}

.map-container {
    position: fixed;
    top: 0;
    left: 0;
    right: var(--timeline-width);
    height: 100%;
}

/* ==========================================================================
   Mapbox GL styles
   ========================================================================== */

/* MAPBOX MAP
   ========================================================================== */

.maplibregl-map,
.mapboxgl-map {
    width: 100%;
    height: calc(100% + 12px);
}
@media (min-width: 840px) {
    .maplibregl-map,
    .mapboxgl-map {
        height: 100%;
    }
}
.mapboxgl-canvas-container {
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

/* Grabbing cursor */
.maplibregl-canvas-container.maplibregl-track-pointer,
.mapboxgl-canvas-container.mapboxgl-track-pointer {
    cursor: pointer;
}
.maplibregl-canvas-container:active,
.mapboxgl-canvas-container:active {
    cursor: grabbing;
}

/* Remove outline */
.maplibregl-canvas:focus,
.mapboxgl-canvas:focus {
    outline: 0;
}

/* Controls */
.maplibregl-control-container,
.mapboxgl-control-container {
    /* Opacity transition */
    transition: opacity 0.2s cubic-bezier(0.25, 0.8, 0.5, 1);
}

.maplibregl-ctrl-bottom-right,
.mapboxgl-ctrl-bottom-right {
    position: absolute;
    z-index: 2;
    right: 15px;
    bottom: 15px;
    line-height: 18px; /* cm added */
    direction: ltr; /* cm added */
    margin-left: 15px;
    display: flex;
    flex-direction: row-reverse;
    color: rgba(0, 0, 0, 0.7);
    -webkit-user-select: none;
    user-select: none;
}

/* Scale */
.maplibregl-ctrl-scale,
.mapboxgl-ctrl-scale {
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    font-size: 11px;
    border: 2px solid rgba(0, 0, 0, 0.6);
    border-top: none;
    border-radius: 2px 0 0 2px;
    background: #fff;
    pointer-events: none;
}
.is-dark .maplibregl-ctrl-scale,
.is-dark .mapboxgl-ctrl-scale {
    border-color: #000;
}
/* Hide MapLibre's attribution while loading map to prevent flickering */
/* .maplibregl-ctrl-attrib + .mapboxgl-ctrl-scale, */
/* .maplibregl-ctrl-attrib.mapboxgl-compact, */
/* Hide scale when mobile attribution is closed */
.maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show)
    + .maplibregl-ctrl-scale,
.mapboxgl-ctrl-attrib.mapboxgl-compact:not(.mapboxgl-compact-show)
    + .mapboxgl-ctrl-scale {
    display: none;
}
/* Desktop scale */
.maplibregl-ctrl-attrib:not(.maplibregl-compact) + .maplibregl-ctrl-scale,
.mapboxgl-ctrl-attrib:not(.mapboxgl-compact) + .mapboxgl-ctrl-scale {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Attribution */
.maplibregl-ctrl-attrib,
.mapboxgl-ctrl-attrib {
    font-size: 12px;
}
.maplibregl-ctrl-attrib.maplibregl-compact,
.mapboxgl-ctrl-attrib.mapboxgl-compact {
    min-height: 24px;
}
.maplibregl-ctrl-attrib.maplibregl-compact-show,
.mapboxgl-ctrl-attrib.mapboxgl-compact-show {
    padding: 2px 28px 2px 5px;
    border-radius: 0 12px 12px 0;
    background: #fff;
}
/* Desktop attribution */
.maplibregl-ctrl-attrib:not(.maplibregl-compact),
.mapboxgl-ctrl-attrib:not(.mapboxgl-compact) {
    padding: 0 5px;
    border-radius: 0 4px 4px 0;
    background-color: rgba(255, 255, 255, 0.5);
}
a.maplibregl-ctrl-logo.maplibregl-ctrl-logo,
a.mapboxgl-ctrl-logo.mapboxgl-ctrl-logo,
.maplibregl-improve-map,
.mapbox-improve-map,
.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner,
.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner {
    display: none;
}
/* Attribution button */
.maplibregl-ctrl-attrib-button,
.mapboxgl-ctrl-attrib-button {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    outline: 0;
    border-radius: 12px;
    /* Use opacity for hover effect */
    opacity: 0.7;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");
    background-color: rgba(255, 255, 255, 0.8);
}
.maplibregl-ctrl-attrib-button:hover,
.mapboxgl-ctrl-attrib-button:hover {
    opacity: 1;
    background-color: rgb(255, 255, 255, 1);
}
.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner,
.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner,
.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,
.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button {
    display: block;
}
.maplibregl-ctrl-attrib-button:focus-visible,
.mapboxgl-ctrl-attrib-button:focus-visible {
    box-shadow: 0 0 2px 2px var(--primary-color);
}
.maplibregl-ctrl-attrib a,
.mapboxgl-ctrl-attrib a {
    color: inherit;
    text-decoration: none;
}
.maplibregl-ctrl-attrib a:hover,
.mapboxgl-ctrl-attrib a:hover {
    text-decoration: underline;
}
/* Hide Safari summary/details arrow */
.maplibregl-ctrl-attrib summary::-webkit-details-marker {
    display: none;
}

/* ==========================================================================
   Map UI (loading, controls, legend, logo)
   ========================================================================== */

/* MAP LOADING
   ========================================================================== */

.map-loading {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    /* z-index: 1; */
}

/* Book cut format */
.map-format-cut .map-legend,
.map-format-cut .map-logo {
    margin-block: 5mm;
    margin-inline: 10mm;
}
.map-format-cut .maplibregl-ctrl-bottom-right,
.map-format-cut .mapboxgl-ctrl-bottom-right {
    margin: 5mm;
}

/* MAP ZOOM BUTTONS
   ========================================================================== */

.map-zoom-buttons {
    /* Position */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    /* Content */
    display: flex;
    flex-direction: column;
}
.map-zoom-buttons button {
    width: 36px;
    height: 36px;
    margin: 6px;
}
@media (min-width: 600px) {
    .map-zoom-buttons button {
        width: 42px;
        height: 42px;
    }
}
/* Hide on mobile touchscreen devices */
@media (max-width: 839px) and (hover: none) {
    .map-zoom-buttons button {
        display: none;
    }
}

/* MAP LEGEND
   ========================================================================== */

.map-legend {
    /* Position */
    position: absolute;
    left: 16px;
    bottom: 16px;

    /* Opacity transition */
    transition: opacity 0.2s cubic-bezier(0.25, 0.8, 0.5, 1);
}

.map-legend-header {
    height: 32px;
    padding-inline: 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
}

/* Icon */
.map-legend .map-legend-header .svg-icon {
    margin-inline: 3px -4px;
    transform: rotate(-180deg);
}
.map-legend.is-loaded .map-legend-header .svg-icon {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
}
.map-legend.is-open .map-legend-header .svg-icon {
    transform: rotate(0deg);
}

/* List */
.map-legend ul {
    max-width: 0;
    max-height: 0;
    padding-inline: 10px;
    overflow-x: hidden;
    overflow-y: auto;
}
.map-legend.is-moving ul {
    overflow-y: hidden;
}
.map-legend.is-loaded ul {
    transition: all 0.3s cubic-bezier(0.25, 0.7, 0.5, 1);
}
.map-legend.is-open ul {
    max-width: 180px;
    max-height: 221px;
}

/* List content */
.map-legend li {
    line-height: 22px;
    font-size: 13px;
}
.map-legend li:first-child {
    margin-top: -5px;
}
.map-legend li:last-child {
    margin-bottom: 6px;
}

/* MAP LOGO
   ========================================================================== */

.map-logo {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);

    /* Prevent selection */
    -webkit-user-select: none;
    user-select: none;

    /* Hide on mobile when Timeline is open */
    transition: opacity 0.2s cubic-bezier(0.25, 0.8, 0.5, 1);
}
.map-logo svg {
    display: block;
    width: 130px;
    color: var(--primary-color);
}
@media (min-width: 520px) {
    .map-logo svg {
        width: 150px;
    }
}

/* MAP ONLY MODE
   ========================================================================== */

/* Map only logo (screenshot) */
.map-only-logo .map-logo svg {
    width: 280px;
}
.map-only-logo.map-format-square .map-logo svg {
    width: 190px;
}

.map-only-logo .map-legend,
.map-only-legend .map-logo,
.map-only-logo .map-zoom-buttons,
.map-only-legend .map-zoom-buttons,
.map-only-map .map-zoom-buttons,
.map-only-logo .maplibregl-ctrl-bottom-right,
.map-only-logo .mapboxgl-ctrl-bottom-right,
.map-only-map .maplibregl-ctrl-attrib,
.map-only-map .mapboxgl-ctrl-attrib {
    display: none;
}
.map-only-logo .map-panel-content,
.map-only-legend .map-panel-content,
.map-only-map .map-panel-content {
    width: 100% !important;
    height: 100%;
}

/* HIDE/SLIDE UI (open timeline or page)
   ========================================================================== */

/* Mobile (only) */
@media (max-width: 839px) {
    /*  Hide map UI (header, legend, logo, scale) when timeline is open */
    .map-panel-content.hide-ui .map-header,
    .map-panel-content.hide-ui .map-legend,
    .map-panel-content.hide-ui .map-logo,
    .map-panel-content.hide-ui .maplibregl-control-container,
    .map-panel-content.hide-ui .mapboxgl-control-container {
        opacity: 0;
    }
}
/* Desktop */
@media (min-width: 840px) {
    /* Slide map to the left */
    .map-panel-content {
        transition: transform 0.2s cubic-bezier(1, 0.5, 0.8, 1),
            opacity 0.2s cubic-bezier(1, 0.5, 0.8, 1);
    }
    html:not(.page-map) .map-panel-content {
        /* (Width of page (790px) - width of timeline (370px)) / 2 */
        transform: translateX(-210px);
    }
    html.page-photos .map-panel-content,
    html.page-map-style .map-panel-content {
        /* Photos and album pages (map 25%) */
        transform: translateX(
            calc((100% * 0.75 - var(--timeline-width) * 0.25) / -2)
        );
    }
    html.page-edit-line .map-panel-content {
        transform: none; /* admin only */
    }

    /* Hide map header, legend and scale/credits when Page is open */
    html:not(.page-map) .map-header,
    html:not(.page-map) .map-legend,
    html:not(.page-map) .maplibregl-control-container,
    html:not(.page-map) .mapboxgl-control-container {
        opacity: 0;
    }
}

/* ==========================================================================
   Timeline
   ========================================================================== */

/* TIMELINE PANEL
   ========================================================================== */

.timeline-panel {
    /* Over fixed map */
    position: relative;

    /* Full height on landscape mobile */
    height: calc(100% + 18px);

    /* Enlarge draggable header  */
    padding-top: 18px;
    scroll-margin-top: -18px;

    /* Allow spots scroll */
    display: flex;
}

.timeline-wrapper {
    width: 100%;

    /* Allow spots scroll */
    display: flex;
    flex-direction: column;

    /* Appearance */
    background: #fff;
    /* Elevation 5 */
    box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2),
        0 5px 8px 0 rgba(0, 0, 0, 0.14), 0 1px 14px 0 rgba(0, 0, 0, 0.12);
}

/* Mobile */
@media (max-width: 839px) {
    .timeline-wrapper {
        /* Appearance (rounded) */
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
    .has-full-timeline .timeline-wrapper {
        /* Timeline fully opened */
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
}

/* Desktop */
@media (min-width: 840px) {
    .timeline-panel {
        /* Right side */
        position: absolute;
        width: var(--timeline-width);
        height: 100%;
        top: 0;
        right: 0;
        padding-top: 0;
    }
    .timeline-wrapper {
        /* Elevation 1 */
        box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2),
            0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
    }
}

/* Header drag handle */
.timeline-panel-header {
    /* Position */
    height: 42px;
    flex-shrink: 0;

    /* Enable dragging header (FF fix) */
    touch-action: pan-y;

    /* Border bottom */
    border-bottom: 1px solid rgba(200, 200, 200, 0.1);
}

/* Spots listing */
.timeline-panel-content {
    /* Fill height */
    display: flex;
    flex-direction: column;
    flex: 1;

    /* Scroll spots */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Drag handle */
.drag-handle {
    /* Size */
    width: 100%;
    height: 100%;

    /* Vertical align content */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Handle style */
.drag-handle span {
    width: 24px;
    height: 4px;
    border-radius: 4px;
    background: #dbdce0;
}

/* Lock timeline when menu is open */
.z-behind {
    overflow: hidden;
}
.z-behind aside.timeline-panel {
    z-index: -1;
}

/* ==========================================================================
   Timeline spots
   ========================================================================== */

/* SPOT
   ========================================================================== */

.spot.list-item {
    position: relative;
    min-height: unset;

    font-size: 14px;

    cursor: pointer;
}

/* Free spot (nested) */
.spot.list-item .spot.list-item {
    margin-top: 6px;
    margin-bottom: -10px;
    padding-inline: 0;
}
.spot.list-item .spot.list-item .spot.list-item {
    width: calc(100% + 24px);
    margin-top: 10px;
    margin-inline-start: -24px;
}

/* Spot line */
.spot-line {
    position: absolute;
    top: 22px;
    margin-inline-start: 4px;
    width: 5px;
    height: 100%;
    min-height: 10px;
    transform: translateX(-50%);
}
[dir='rtl'] .spot-line {
    transform: translateX(50%);
}

/* Spot icon */
svg.spot-icon {
    position: absolute;
    top: 21px;
    inset-inline-start: 20px;
    transform: translateX(-50%) translateY(-50%);

    /* Selection */
    fill: currentColor;
    stroke: #fff;
    stroke-width: 2;
}
/* Free spot icon */
.spot.list-item .spot.list-item svg.spot-icon {
    inset-inline-start: 8px;
    /* top: 23px; */
}
[dir='rtl'] svg.spot-icon {
    transform: translateX(50%) translateY(-50%);
}
/* Selected */
.is-selected > svg.spot-icon {
    fill: #fff;
    stroke: currentColor;
}

/* Current icon */
svg.spot-icon.spot-icon--place {
    margin-top: -2px;
    stroke-width: 1;
}

/* Star icon */
svg.spot-icon.spot-icon--star {
    stroke-width: 1;
    stroke: gold;
    fill: yellow;
}
.is-selected svg.spot-icon.spot-icon--star {
    stroke: orange !important;
}

.spot-container {
    width: 100%;
    padding-inline-start: 24px;
}

/* Date */
.spot time {
    font-size: 12px;
}

/* Distance */
.spot-distance {
    margin-block: 0 -4px;
    margin-inline: 4px 0;
}

/* Comment */
.spot-comment {
    font-size: 13px;
}
/* Truncate long comments */
.is-selected .spot-comment span,
.spot-comment--overflow {
    display: none;
}
.is-selected .spot-comment--overflow {
    display: inline;
}

/* SPOT ITEMS (albums, posts, videos, links)
   ========================================================================== */

.spot-item {
    margin-top: 10px;
}
.spot-comment .spot-item {
    margin-top: 6px;
}
.spot-item .spot-item-link {
    padding: 6px;
    display: flex;
    align-items: center;
}
.spot-item .spot-item-link .svg-icon {
    flex-shrink: 0;
    margin-inline: 3px 8px;
}
/* Free Spot items */
.spot .spot .spot-item:not(.spot-comment) {
    margin-inline-start: -23px;
}

/* Photos */
.spot-item .spot-item-photos {
    position: relative;
    display: flex;
}
.spot-item .spot-item-photos a {
    position: relative;
    flex: 1;
    margin-inline-start: 1px;
}
.spot-item .spot-item-photos a:first-child {
    margin-inline-start: 0;
}
.spot-item .spot-item-photos img {
    /* Image cover */
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Overlay */
.spot-item .spot-item-photos .overlay {
    /* Style */
    font-size: 26px;
    color: rgba(255, 255, 255, 0.8);
}

/* Video */
.spot-item .spot-item-video {
    height: 140px;
}

/* Post */
.spot-item .spot-item-post {
    display: block;
}
.spot-item .spot-item-preview {
    margin-top: 3px;
    margin-inline-start: 4px;
    font-size: 12px;

    /* Line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Hamburgers menu button
   @description Tasty CSS-animated hamburgers
   @author Jonathan Suh @jonsuh
   @site https://jonsuh.com/hamburgers
   @link https://github.com/jonsuh/hamburgers
   ========================================================================== */

/* MENU BUTTON
   ========================================================================== */

.menu-button {
    width: 48px;
    min-width: 48px;
    height: 48px;
    transition-property: opacity;
    transition-duration: 0.15s;
    transition-timing-function: linear;
}

.menu-button-box {
    display: inline-block;
    width: 19px;
    height: 19px;
    position: relative;
}

.menu-button-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
}
.menu-button-inner,
.menu-button-inner::before,
.menu-button-inner::after {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #757575;
    border-radius: 2px;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}
.menu-button-inner::before,
.menu-button-inner::after {
    content: '';
    display: block;
}
.menu-button-inner::before {
    top: -5px;
}
.menu-button-inner::after {
    bottom: -5px;
}

/* 3DY */
.menu-button--3dy .menu-button-box {
    perspective: 80px;
}
.menu-button--3dy .menu-button-inner {
    transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1),
        background-color 0s 0.1s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.menu-button--3dy .menu-button-inner::before,
.menu-button--3dy .menu-button-inner::after {
    transition: transform 0s 0.1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.is-menu-open .menu-button--3dy .menu-button-inner {
    background-color: transparent !important;
    transform: rotateX(-180deg);
}
.is-menu-open .menu-button--3dy .menu-button-inner::before {
    transform: translate3d(0, 5px, 0) rotate(45deg);
}
.is-menu-open .menu-button--3dy .menu-button-inner::after {
    transform: translate3d(0, -5px, 0) rotate(-45deg);
}
