/* Editorial gallery landing. Scoped to the generated page, never checkout. */
.mg-gallery-landing main > .container { max-width: none; padding-inline: 0; }
/* The theme sets padding-top:26px inline; remove only on this landing. */
.mg-gallery-landing .despre-grid { padding-top: 0 !important; }
.mg-gallery-page { --mg-shell: 1360px; --mg-edge: clamp(16px, 4vw, 40px); --mg-type-note: 14px; --mg-type-control: 16px; --mg-type-body: 18px; --mg-type-step: 24px; --mg-type-section: clamp(32px, 3.4vw, 46px); max-width: none; width: 100%; padding-top: 0; font-size: var(--mg-type-body); }
/* Match the theme header's content rail; only the hero bleeds to the edges. */
.mg-gallery-page > :not(.mg-gallery-hero) { width: calc(100% - 2 * var(--mg-edge)); max-width: calc(var(--mg-shell) - 2 * var(--mg-edge)); margin-inline: auto; }
.mg-gallery-page *, .mg-gallery-page *::before, .mg-gallery-page *::after { box-sizing: border-box; }
.mg-gallery-page .mg-hero-main, .mg-gallery-page .mg-exhibition-visual img { display: block; margin: 0; }
.mg-gallery-page .mg-hero-copy > .mg-gallery-eyebrow { color: #e1d0b7; font-size: 14px; line-height: 1.5; letter-spacing: .08em; margin: 0 0 24px; }
.mg-gallery-page .mg-gallery-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(740px, 82svh, 920px); gap: 0; align-items: stretch; margin: 0 0 72px; padding-inline: max(var(--mg-edge), calc((100% - var(--mg-shell)) / 2 + var(--mg-edge))); background: #232420; color: #f8f4ed; overflow: hidden; }
.mg-gallery-page .mg-hero-copy { position: relative; z-index: 2; padding: 64px 0; align-self: center; }
.mg-gallery-page .mg-hero-date { margin: 0 0 34px; color: #e5c99e; font-size: var(--mg-type-control); font-weight: 500; letter-spacing: .05em; }
.mg-hero-date span { font-size: var(--mg-type-step); font-weight: 500; letter-spacing: -.04em; margin-right: 8px; }
.mg-gallery-page .mg-gallery-hero h1 { color: #fffaf2; font: 500 clamp(44px, 5.35vw, 84px)/1.015 var(--font-sans, "Helvetica Neue", Arial, sans-serif); letter-spacing: -.055em; margin: 0 0 28px; max-width: 700px; text-wrap: balance; }
.mg-gallery-page .mg-hero-invitation { color: #e2ded5; font-size: var(--mg-type-body); line-height: 1.65; margin: 0 0 30px; }
.mg-gallery-page .mg-gallery-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 20px; }
.mg-gallery-page .mg-gallery-hero .mg-gallery-cta { color: #24251f; background: #ebd6b7; border-color: #ebd6b7; border-radius: 2px; padding: 16px 24px; min-height: 58px; font-size: 16px; gap: 48px; box-shadow: none; }
.mg-gallery-page .mg-hero-discover { display: inline-flex; gap: 16px; align-items: center; color: #f7f1e9; font-size: var(--mg-type-control); text-decoration: none; border-bottom: 1px solid #8e8c7e; padding-bottom: 5px; }
.mg-gallery-page .mg-hero-photos { position: static; padding: 0; margin: 0; min-width: 0; }
.mg-gallery-page .mg-hero-frames { position: absolute; z-index: -2; inset: 0 0 0 20%; }
.mg-gallery-page .mg-hero-frames::after { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, #232420 0%, #232420eb 14%, #23242040 49%, #23242000 75%), linear-gradient(0deg, #151811b8, transparent 34%); pointer-events: none; }
.mg-gallery-page .mg-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.mg-gallery-page .mg-hero-slide.is-active { opacity: 1; }
.mg-gallery-page .mg-hero-main { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 52% center; border-radius: 0; }
.mg-gallery-page .mg-hero-slide:nth-child(2) .mg-hero-main { object-position: 62% center; }
.mg-gallery-page .mg-hero-controls { position: absolute; bottom: 114px; right: max(var(--mg-edge), calc((100% - var(--mg-shell)) / 2 + var(--mg-edge))); display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; z-index: 3; }
.mg-gallery-page .mg-hero-controls[hidden] { display: none; }
.mg-gallery-page .mg-hero-controls button { color: #fff; background: #1a1c18a6; border: 1px solid #d8d6ca8c; border-radius: 0; min-width: 44px; min-height: 44px; padding: 9px; font: 500 var(--mg-type-note)/1.3 var(--font-sans, Arial, sans-serif); cursor: pointer; box-shadow: none; }
.mg-gallery-page .mg-hero-controls button:hover { background: #44473b; }
.mg-gallery-page .mg-hero-controls button[aria-pressed="true"] { background: #ebd6b7; color: #232420; border-color: #ebd6b7; }
.mg-hero-dots { display: flex; gap: 5px; }
.mg-hero-counter { display: none; }
.mg-gallery-page .mg-hero-caption { position: absolute; right: max(var(--mg-edge), calc((100% - var(--mg-shell)) / 2 + var(--mg-edge))); bottom: 24px; margin: 0; text-align: right; font-size: var(--mg-type-note); line-height: 1.65; color: #f3f0e7; z-index: 2; }
.mg-gallery-page .mg-gallery-hero a:focus-visible, .mg-gallery-page .mg-hero-controls button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.mg-gallery-page .mg-gallery-hero-official { grid-template-columns: 1fr 1.1fr; overflow: visible; }
.mg-gallery-page .mg-gallery-hero-official .mg-hero-copy { padding-right: 32px; }
.mg-gallery-page .mg-gallery-hero-official .mg-hero-official { align-self: center; padding: 24px; }
.mg-gallery-page .mg-hero-official .mg-hero-main { height: auto; object-fit: contain; }

/* A lead and a contextual aside, followed by two spacious exhibition stories. */
.mg-gallery-page .mg-story-intro { display: grid; grid-template-columns: 1.35fr 1fr; gap: 68px; align-items: start; padding: 0 0 48px; border-bottom: 1px solid var(--mg-line); margin-bottom: 48px; }
.mg-gallery-page .mg-story-intro .mg-gallery-lead { font-size: var(--mg-type-step); line-height: 1.5; letter-spacing: -.025em; margin: 0; }
.mg-gallery-page .mg-story-context { border-left: 1px solid var(--mg-line); padding: 4px 0 4px 32px; }
.mg-gallery-page .mg-story-context p { color: var(--mg-muted); font-size: var(--mg-type-body); line-height: 1.8; margin: 0; }
.mg-gallery-page .mg-gallery-exhibitions { display: block; padding: 0; margin-block: 0 72px; border: 0; scroll-margin-top: 130px; }
.mg-gallery-page .mg-exhibition-story { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; background: #f3eee5; margin-bottom: 32px; align-items: stretch; }
.mg-gallery-page .mg-exhibition-story:nth-child(even) { background: #e9ece5; }
.mg-gallery-page .mg-exhibition-story:nth-child(even) .mg-exhibition-visual { order: 2; }
.mg-gallery-page .mg-exhibition-visual { position: relative; margin: 0; min-width: 0; min-height: 510px; }
.mg-gallery-page .mg-exhibition-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; border: 0; border-radius: 0; }
.mg-gallery-page .mg-exhibition-visual figcaption { position: absolute; bottom: 0; right: 0; left: 0; padding: 36px 22px 17px; background: linear-gradient(transparent,#171b16f0); color: #fff; font-size: var(--mg-type-note); line-height: 1.6; }
.mg-gallery-page .mg-exhibition-copy { position: relative; padding: clamp(28px, 4vw, 52px); }
.mg-gallery-page .mg-exhibition-index { display: block; font-size: 52px; line-height: 1; letter-spacing: -.06em; font-weight: 400; color: #776b57; margin-bottom: 40px; }
.mg-gallery-page .mg-exhibition-copy h2 { font-size: var(--mg-type-section); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; margin: 0 0 22px; padding: 0; border: 0; text-wrap: balance; }
.mg-gallery-page .mg-exhibition-copy p { font-size: var(--mg-type-body); line-height: 1.8; }
.mg-gallery-page .mg-exhibition-copy .mg-gallery-eyebrow { font-size: var(--mg-type-note); line-height: 1.4; letter-spacing: .07em; margin-bottom: 14px; }
.mg-gallery-page .mg-editorial-link { display: inline-flex; align-items: center; gap: 22px; color: #514329; font-size: var(--mg-type-control); font-weight: 600; text-decoration: none; border-bottom: 1px solid #b2a38a; padding-bottom: 8px; margin-top: 28px; min-height: 44px; }
.mg-gallery-page .mg-editorial-link:focus-visible { outline: 3px solid var(--mg-brand); outline-offset: 4px; }
.mg-gallery-page .mg-visit-invitation { max-width: 880px; margin: 0 auto 36px; padding: 40px; border-block: 1px solid var(--mg-line); background: #f3eee5; text-align: center; }
.mg-gallery-page .mg-visit-invitation > p:first-of-type { font-size: var(--mg-type-step); line-height: 1.5; letter-spacing: -.025em; margin: 18px 0 24px; }
.mg-gallery-page .mg-visit-invitation > p:nth-of-type(2) { max-width: 590px; margin: 0 auto; color: var(--mg-muted); line-height: 1.7; font-size: var(--mg-type-body); }
.mg-gallery-page .mg-gallery-address { text-align: center; border-top: 1px solid var(--mg-line); padding-top: 24px; margin-block: 0 56px; }

@media (min-width: 1321px) {
    .mg-gallery-page { --mg-shell: 1600px; --mg-edge: 24px; }
}

@media (max-width: 1000px) and (min-width: 701px) {
    .mg-gallery-page .mg-gallery-hero { grid-template-columns: 1.15fr 1fr; }
    .mg-gallery-page .mg-hero-controls { gap: 4px; }
    .mg-gallery-page .mg-hero-dots { display: none; }
    .mg-gallery-page .mg-hero-counter { display: block; font-size: var(--mg-type-note); padding: 0 8px; }
    .mg-gallery-page .mg-story-intro { gap: 32px; padding-inline: 0; }
    .mg-gallery-page .mg-exhibition-visual { min-height: 560px; }
}
@media (max-width: 700px) {
    .mg-gallery-page .mg-gallery-hero { display: flex; flex-direction: column; min-height: 0; margin-bottom: 42px; padding-inline: 0; }
    .mg-gallery-page .mg-hero-photos { position: relative; order: -1; height: clamp(320px, 64vw, 440px); }
    .mg-gallery-page .mg-hero-frames { inset: 0; }
    .mg-gallery-page .mg-hero-frames::after { background: linear-gradient(0deg,#232420,transparent 65%); }
    .mg-gallery-page .mg-hero-copy { padding: 16px var(--mg-edge) 44px; align-self: stretch; }
    .mg-gallery-page .mg-hero-date { margin-bottom: 22px; }
    .mg-gallery-page .mg-gallery-hero h1 { font-size: clamp(36px, 7.7vw, 52px); max-width: 620px; margin-bottom: 24px; }
    .mg-gallery-page .mg-hero-invitation { margin-bottom: 24px; }
    .mg-gallery-page .mg-gallery-actions { gap: 18px; }
    .mg-gallery-page .mg-gallery-hero .mg-gallery-cta { min-height: 54px; padding: 14px 20px; }
    .mg-gallery-page .mg-hero-controls { right: var(--mg-edge); bottom: 120px; left: var(--mg-edge); justify-content: flex-end; }
    .mg-gallery-page .mg-hero-caption { right: var(--mg-edge); bottom: 22px; left: var(--mg-edge); max-width: none; }
    .mg-gallery-page .mg-hero-official { height: auto; padding: 20px; }
    .mg-gallery-page .mg-gallery-hero-official .mg-hero-copy { padding: 16px var(--mg-edge) 44px; }
    .mg-gallery-page .mg-story-intro { grid-template-columns: 1fr; padding: 0 0 40px; gap: 24px; }
    .mg-gallery-page .mg-story-context { padding-left: 20px; }
    .mg-gallery-page .mg-exhibition-story { grid-template-columns: 1fr; margin-bottom: 24px; }
    .mg-gallery-page .mg-exhibition-visual { min-height: 0; aspect-ratio: 5 / 4; }
    .mg-gallery-page .mg-exhibition-story:nth-child(even) .mg-exhibition-visual { order: 0; }
    .mg-gallery-page .mg-exhibition-copy { padding: 28px; }
    .mg-gallery-page .mg-exhibition-index { font-size: 40px; margin-bottom: 24px; }
    .mg-gallery-page .mg-gallery-exhibitions { margin-bottom: 32px; }
    .mg-gallery-page .mg-visit-invitation { padding: 32px 24px; }
}
@media (max-width: 390px) {
    .mg-gallery-page .mg-hero-dots { display: none; }
    .mg-gallery-page .mg-hero-counter { display: block; padding: 0 8px; font-size: var(--mg-type-note); }
    .mg-gallery-page .mg-exhibition-copy { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .mg-gallery-page .mg-hero-slide { transition: none; }
}

/* One readable scale for this landing and its booking form, not the site theme. */
.mg-gallery-page .mg-booking { border-top: 2px solid #ac9271; padding-top: 56px; margin-top: 64px; }
.mg-gallery-page .mg-booking-intro h2 { font-size: var(--mg-type-section); font-weight: 500; margin: 0 0 16px; padding: 0; border: 0; }
.mg-gallery-page .mg-booking-intro > div > p:not(.mg-gallery-eyebrow) { font-size: var(--mg-type-body); max-width: 680px; }
.mg-gallery-page :is(.mg-gallery-eyebrow, .mg-visit-facts, .mg-gallery-address, .mg-booking-note, .mg-availability, .mg-exhibition-note, .mg-summary-heading, .mg-next-note, .mg-calendar-key, .mg-manual-date, .mg-slot-loading, .mg-total small, .mg-ticket-row label small, .mg-slot-face small, .mg-calendar-week span, .mg-fieldset legend span) { font-size: var(--mg-type-note); line-height: 1.6; }
.mg-gallery-page :is(.mg-ticket-price, .mg-summary-details, .mg-field label, .mg-slot-face strong, .mg-calendar-days button) { font-size: var(--mg-type-control); }
.mg-gallery-page :is(.mg-ticket-row label strong, .mg-total > span) { font-size: var(--mg-type-body); }
.mg-gallery-page .mg-fieldset legend { font-size: var(--mg-type-step); padding-bottom: 24px; }
.mg-gallery-page .mg-fieldset legend span { width: 32px; height: 32px; background: #eee6d9; border-color: #c4b197; }
.mg-gallery-page .mg-booking-form { background: #fcfaf6; border-color: #c4b197; border-radius: 4px; }
.mg-gallery-page .mg-date-step { padding-bottom: 28px; border-bottom: 1px solid #c4b197; }
.mg-gallery-page .mg-booking .mg-time-step { margin-top: 32px; }
.mg-gallery-page .mg-booking-summary { padding: 24px; background: #eee6d9; border-top: 2px solid #ac9271; }
.mg-gallery-page .mg-summary-details > div { gap: 20px; margin-bottom: 12px; }
.mg-gallery-page .mg-summary-details dt { flex: 0 0 26%; }
.mg-gallery-page .mg-summary-details dd { min-width: 0; overflow-wrap: anywhere; }
.mg-gallery-page .mg-total { border-top: 1px solid #c4b197; }
.mg-gallery-page .mg-slot-face { padding: 16px 8px; }
.mg-gallery-page .mg-slot input:checked + .mg-slot-face { padding: 15px 7px; }
.mg-gallery-page .mg-slot-face small { text-wrap: balance; }
.mg-gallery-page .mg-calendar-key { flex-wrap: wrap; gap: 8px; }
@media (max-width: 1100px) and (min-width: 861px), (max-width: 540px) {
    .mg-gallery-page .mg-slot-options { grid-template-columns: 1fr; gap: 10px; }
    .mg-gallery-page .mg-slot-face { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 16px; text-align: left; }
    .mg-gallery-page .mg-slot input:checked + .mg-slot-face { padding: 15px; }
    .mg-gallery-page .mg-slot-face small { margin: 0; }
}
@media (max-width: 540px) {
    .mg-gallery-page { --mg-type-step: 22px; }
    .mg-gallery-page .mg-booking { margin-top: 48px; padding-top: 40px; }
    .mg-gallery-page .mg-booking-summary { padding: 20px 16px; }
    .mg-gallery-page .mg-total { gap: 8px; }
    .mg-gallery-page .mg-total strong { font-size: 28px; }
    .mg-gallery-page .mg-book-button { padding-inline: 14px; }
    .mg-gallery-page .mg-calendar-key small { flex-basis: 100%; margin-left: 16px; }
}
