/*
 * ioann-karpovka virtual tour (task 16; on the museum page since task 72). Markup: blocks/virtual_tour.blade.php; behaviour: js/virtual-tour.js.
 * Design: docs/design/Site.dc.html?page=home, sixth section (lines 263-275).
 * Desktop = (min-width: 768px); mobile = `not all and (min-width: 768px)`; never a max-width query (task 36).
 */
.ik-tour { padding-block: 48px; }
.ik-tour--after-text { padding-top: 0; }   /* the text run above already ends with its 120px (as .ik-fact-cards--after-text) */
.ik-tour--last { padding-bottom: 120px; }  /* last block: the usual 120px above the footer */
.ik-tour__inner { min-width: 0; }
/* «Половина – 2/3 ширины»: at most 2/3 of the content box, never wider than the 760px text column; full width on mobile. */
@media (min-width: 768px) {
    .ik-tour--compact .ik-tour__inner { max-width: min(var(--ik-text-measure, 760px), 66.667%); margin-inline: auto; }
}
.ik-tour__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.ik-tour__title {
    /* The design's ad hoc heading has no letter-spacing (unlike the DS headings). */
    margin: 0;
    font: 600 clamp(36px, 4vw, 48px)/1.05 var(--font-title);
    color: var(--iskm-navy);
    text-wrap: balance;
    overflow-wrap: break-word;
}
.ik-tour__stage {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--iskm-navy);
}
/* The navy stage shows through: a slightly darkened photo. */
.ik-tour__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.ik-tour__badge {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--iskm-cream-50);
    color: var(--iskm-navy);
    font: 500 13px/1 var(--font-body);
    letter-spacing: .06em;
}
.ik-tour__start {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: calc(100% - 32px);
}
.ik-tour__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* 16:9 at 350px is too small to move around a 360° tour: the playing stage gets more height on mobile. */
@media not all and (min-width: 768px) {
    .ik-tour__stage.is-playing { aspect-ratio: auto; height: min(75vh, 560px); height: min(75svh, 560px); }
}
