/* Restored after disk-full truncation (2026-03-26) */

/* --- Generic migrated UI (node-*) --- */
.node-wrap { padding-top: 24px; }
.node-wrap.narrow { max-width: 980px; }

.node-content { padding-top: 24px; padding-bottom: 24px; }
.node-back { margin: 0 0 14px; }
.node-text { line-height: 1.65; }
.node-muted { color: #6f6f6f; font-size: 14px; }

.node-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.node-card {
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  position: relative;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.node-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08); }
.node-card-image { width: 100%; height: 190px; object-fit: cover; display: block; background: #f2f2f2; }
.node-card-body { padding: 12px 14px; }

.node-card_link {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  text-decoration: none;
}

.node-message { border: 1px dashed #ddd; border-radius: 12px; padding: 14px; background: #fafafa; }

/* --- Admin (Ant-like via reset.css + our layout) --- */
.admin-antd .admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}
.admin-antd .admin-sidebar { background: #001529; color: #fff; padding: 18px 12px; }
.admin-antd .admin-brand { font-weight: 700; letter-spacing: .3px; margin: 2px 8px 14px; }
.admin-antd .admin-nav { display: grid; gap: 4px; }
.admin-antd .admin-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
}
.admin-antd .admin-nav a.active,
.admin-antd .admin-nav a:hover { background: rgba(22,119,255,.18); color: #fff; }
.admin-antd .admin-main { padding: 20px; }

.admin-stats { display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:14px 0; }
.admin-stat { background:#fff;border:1px solid #f0f0f0;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:6px;box-shadow:0 1px 2px rgba(0,0,0,.03); }
.admin-stat b { font-size:26px; line-height:1; }

.admin-form-control {
  width: 100%;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 10px 12px;
}
.admin-form-control:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22,119,255,.18);
}

/* Admin posts list (table + filters) */
.admin-filters { margin: 12px 0 16px; }
.admin-filters-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.admin-filter { display: grid; gap: 6px; min-width: 220px; }
.admin-filter label { font-size: 12px; color: rgba(0,0,0,.65); }
.admin-filter-actions { min-width: auto; display:flex; gap:8px; align-items:flex-end; }

.admin-btn {
  border: 1px solid #1677ff;
  background: #1677ff;
  color: #fff;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
}
.admin-btn:hover { filter: brightness(0.98); }
.admin-btn-ghost {
  background: #fff;
  color: #1677ff;
}
.admin-btn-soft {
  background: #fff !important;
  border-color: #d9d9d9 !important;
  color: #262626 !important;
  white-space: nowrap;
}
.admin-btn-soft:hover {
  background: #fafafa !important;
  color: #262626 !important;
}
.admin-btn-dark {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}
.admin-btn-dark:hover {
  background: #000 !important;
  border-color: #000 !important;
}
.admin-events-actions {
  display: flex !important;
  flex-direction: row;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px;
  align-self: end;
  min-width: 260px;
}
.admin-events-actions label {
  display: none;
}
.admin-events-filters .admin-filter label {
  color: rgba(0, 0, 0, 0.65);
  font-size: 12px;
}
.admin-events-filters .admin-filters-row {
  justify-content: center;
  align-items: center;
}
.admin-events-filters .admin-filter {
  justify-items: start;
  align-items: start;
}
.admin-events-filters .admin-filter .admin-form-control {
  text-align: left;
}
.admin-events-filters .admin-btn-soft {
  min-width: 120px;
  height: 42px;
  border: 1px solid #d9d9d9 !important;
  border-radius: 8px;
  background: #fff !important;
  color: #262626 !important;
  font-weight: 500;
  box-shadow: none;
  justify-content: center;
}
.admin-events-filters .admin-btn-soft:hover {
  border-color: #bfbfbf !important;
  background: #fff !important;
  color: #262626 !important;
}
.admin-events-filters .admin-filter-actions {
  align-items: center !important;
}

/* Settings page readability */
.admin-settings-wrap {
  padding: 18px;
}
.admin-settings-form {
  max-width: 820px;
}
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}
.admin-settings-field {
  display: grid;
  gap: 6px;
}
.admin-settings-field label {
  color: rgba(0, 0, 0, 0.75);
  font-size: 13px;
  font-weight: 600;
}
.admin-settings-checkbox {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f1f1f;
}
.admin-settings-actions {
  margin-top: 18px;
}
.admin-edit-wrap {
  padding: 18px;
}
.admin-edit-form {
  max-width: 980px;
}
.admin-edit-form p {
  margin: 0 0 14px;
}
.admin-edit-form label {
  display: grid;
  gap: 6px;
  color: rgba(0, 0, 0, 0.75);
  font-size: 13px;
  font-weight: 600;
}
.admin-edit-form small.node-muted {
  display: inline-block;
  margin-top: 4px;
}
.admin-edit-form h3 {
  color: #1f1f1f;
  margin: 18px 0 10px;
}
.admin-edit-actions {
  margin-top: 16px;
}

.admin-form-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 640px) {
  .admin-form-grid2 {
    grid-template-columns: 1fr;
  }
}

/* Компактные формы: /admin/events/new, /admin/posts/new (и edit) */
.admin-edit-wrap--compact {
  padding: 10px 12px;
}
.admin-antd:has(.admin-edit-wrap--compact) .admin-main {
  padding: 10px 14px;
}
.admin-edit-wrap--compact .node-back {
  margin-bottom: 4px;
  font-size: 12px;
}
.admin-edit-wrap--compact h1 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.25;
}
.admin-edit-wrap--compact > .node-muted,
.admin-edit-wrap--compact .admin-edit-form > .node-muted {
  font-size: 12px;
  margin: 0 0 8px;
  line-height: 1.35;
}
.admin-edit-wrap--compact .node-message {
  margin: 6px 0 8px;
  padding: 8px 10px;
  font-size: 12px;
}
.admin-edit-wrap--compact .admin-edit-form p {
  margin: 0 0 8px;
}
.admin-edit-wrap--compact .admin-edit-form label {
  gap: 4px;
  font-size: 12px;
}
.admin-edit-wrap--compact .admin-form-control {
  padding: 5px 10px;
  font-size: 13px;
}
.admin-edit-wrap--compact .admin-edit-form fieldset {
  padding: 8px 10px !important;
  margin: 8px 0 !important;
}
.admin-edit-wrap--compact .admin-edit-form fieldset legend {
  font-size: 12px;
  padding: 0 6px;
}
.admin-edit-wrap--compact .admin-edit-form details {
  margin: 8px 0 !important;
  padding: 6px 8px !important;
}
.admin-edit-wrap--compact .admin-edit-form h3 {
  font-size: 14px;
  margin: 10px 0 6px;
}
.admin-edit-wrap--compact .admin-edit-form h4 {
  font-size: 13px;
  margin: 8px 0 4px;
}
.admin-edit-wrap--compact .admin-form-grid2 {
  gap: 8px;
}
.admin-edit-wrap--compact .admin-edit-actions {
  margin-top: 10px;
}
.admin-edit-wrap--compact .admin-btn {
  min-height: 34px;
  height: auto;
  padding: 6px 12px;
  font-size: 13px;
}
.admin-edit-wrap--compact .admin-edit-form [style*="border:1px solid #ececec"],
.admin-edit-wrap--compact .admin-edit-form [style*="border:1px dashed"] {
  padding: 8px !important;
  margin: 6px 0 8px !important;
}
.admin-edit-wrap--compact .admin-edit-form [style*="border:1px solid #ececec"] h3 {
  font-size: 14px !important;
  margin: 0 0 6px !important;
}

@media (max-width: 900px) {
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }
}

.admin-table-wrap {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: 12px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
  text-align: left;
}
.admin-table thead th {
  background: #fafafa;
  font-size: 12px;
  color: rgba(0,0,0,.75);
  font-weight: 600;
}
.admin-table tbody tr:hover td { background: #fcfcff; }
.admin-td-sub { margin-top: 6px; font-size: 12px; color: rgba(0,0,0,.55); }
.admin-td-muted { padding: 18px 12px; color: rgba(0,0,0,.55); }
.admin-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 12px; }
.admin-actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.admin-link { color: #1677ff; text-decoration: none; background: transparent; border: none; padding: 0; cursor: pointer; }
.admin-link:hover { text-decoration: underline; }
.admin-link-danger { color: #b00020; }

/* Главная / страница событий: заголовок блока + ссылка «Все события» */
.vis-events_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.vis-events_head h2 {
  margin: 0;
}

/* Главная: #content даёт text-align:center — заголовок блока и названия событий слева */
#content.wrapper .vis-events,
#content.wrapper .vis-events_head,
#content.wrapper .vis-events_head h2,
#content.wrapper .vis-events .event-details,
#content.wrapper .vis-events .event-details h4,
#content.wrapper .vis-events .event-location,
#content.wrapper .vis-events .event-address {
  text-align: left;
}
#content.wrapper .vis-events .event-price {
  text-align: right;
}
#content.wrapper .vis-events .event-filters {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.vis-events .event-filters .filter-btn.active {
  background: #1677ff;
  color: #fff;
  border-color: #1677ff;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.35);
}
.vis-events__filter-empty {
  margin: 0 0 20px;
  text-align: left;
}
/* «Все события» / подзаголовок отелей — как ссылка «Все базы отдыха» (.vis-sak_title > a) */
.vis-events-all-link.vis-sak_title-pill {
  font-weight: 600;
  font-size: 15px;
  color: #222;
  text-decoration: none !important;
  white-space: nowrap;
}
.vis-events-all-link.vis-sak_title-pill:hover {
  text-decoration: none !important;
}
#content.wrapper #section-hotels .hotels__subtitle.vis-sak_title-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  max-width: none;
  padding: 10px 20px;
  border-radius: 10px;
  background: #f5f5f5;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  color: #222;
}
#content.wrapper .vis-events-all-link.vis-sak_title-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  background: #f5f5f5;
  line-height: 1.2;
  box-sizing: border-box;
}
.vis-events-page__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
}
.vis-events-page__lead {
  margin: 0 0 28px;
  max-width: 720px;
  color: #444;
}
.vis-events-page__h2 {
  margin: 0;
  font-size: 1.25rem;
}
.events-date-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 6px 0 12px;
  margin-bottom: 8px;
  width: 100%;
  max-width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.events-date-strip::-webkit-scrollbar {
  display: none;
}
.events-date-month {
  align-self: center;
  font-size: 13px;
  font-weight: 700;
  color: #666;
  margin: 0 2px 0 6px;
  text-transform: capitalize;
  white-space: nowrap;
}
.events-date-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: #222;
  transition: .15s ease;
  flex: 0 0 auto;
  box-sizing: border-box;
}
.events-date-item:hover {
  border-color: #111;
}
.events-date-item.active {
  border-color: #111;
  background: #111;
  color: #fff;
}
.events-date-day {
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}
.events-date-weekday {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1;
  text-transform: lowercase;
}
.vis-events .event-card-bg img {
  filter: brightness(0.55);
}
.vis-events .event-card-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.vis-events a.event-card {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 10px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.vis-events .event-card-bg,
.vis-events .event-card-bg img,
.vis-events .event-card-content {
  border-radius: 10px;
}
.vis-events .event-details {
  flex: 1 1 60%;
  min-width: 0;
}
.vis-events .event-address {
  margin: 8px 0 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.vis-events .event-details h4 {
  color: #fff !important;
}
.vis-events .event-price {
  flex: 0 1 40%;
  margin-left: 8px;
  text-align: right;
  align-self: flex-end;
  white-space: normal;
  max-width: 40%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.vis-events .event-price .price-amount {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  display: block;
  line-height: 1.2;
  font-size: 24px;
}
.vis-events .event-price .node-muted {
  font-size: 16px !important;
  color: #fff !important;
  line-height: 1.25;
}
.vis-events .event-price .price-person {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.vis-events .event-location span {
  color: #fff !important;
}
/* Home: popular cards image should fill full card */
.vis-popular_items .vis-popular_item {
  display: block;
}
.vis-popular_item .vis-popular_bg {
  position: absolute !important;
  inset: 0 !important;
  right: auto !important;
  bottom: auto !important;
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
}
.vis-popular_item .vis-popular_bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Category /category/3d: обложка без .vis-popular_bg — img сразу в .vis-popular_item */
.vis-popular_item.e-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: 10px;
  pointer-events: none;
}

/* Home: keep popular card text above overlay */
.vis-popular_item .vis-popular_content {
  position: absolute;
  right: 30px;
  bottom: 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  max-width: calc(100% - 60px);
}

.vis-popular_item .vis-popular_content b {
  color: #fff;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
  text-align: right;
}

.vis-popular_item .vis-popular_content span {
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  text-align: right;
}

/* Home: legends section align content to the left */
.vis-blog h2 {
  text-align: left;
}

.vis-blog_item {
  text-align: left;
}

/* Home: unify section title font with "Самые популярные места" */
.vis-blog > h2,
#beach.vis-sak_title > h1,
#sakralnyi.vis-sak_title > h1,
#section-hotels.vis-sak_title > h1,
#section-alakol.vis-sak_title > h1,
.vis-events_head > h2 {
  font-family: inherit;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}

/* Home: hotels cards content should be left aligned */
.home-hotel-card__content {
  text-align: left;
  align-items: flex-start;
}

/* Home hotels: block .wrapper section a:hover underline from hotels/public/css/style.css */
#content.wrapper section.home-hotels a.home-hotel-card,
#content.wrapper section.home-hotels a.home-hotel-card:hover,
#content.wrapper section.home-hotels a.home-hotel-card:focus,
#content.wrapper section.home-hotels a.home-hotel-card:visited {
  text-decoration: none !important;
}

/* Home hotel cards: явно белая типографика на градиенте */
#content.wrapper .home-hotel-card__tag,
#content.wrapper .home-hotel-card__title,
#content.wrapper .home-hotel-card__meta,
#content.wrapper .home-hotel-card__price {
  color: #fff !important;
  text-decoration: none !important;
}
/* Events page: force 2 cards per row on desktop */
.vis-events .events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px) {
  .vis-events .events-grid {
    grid-template-columns: 1fr;
  }
  .vis-events .event-price {
    flex-basis: auto;
    max-width: 100%;
  }
}

/* Event inner page */
.vis-event-inner__title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}
.vis-event-inner__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.vis-event-inner__price {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.vis-event-inner__date {
  margin: 0;
  color: #666;
}
.vis-event-inner__poster img {
  width: 100%;
  max-width: 980px;
  border-radius: 12px;
  display: block;
  margin-bottom: 18px;
}
.vis-event-inner__section {
  margin: 18px 0 24px;
}
.vis-event-inner__section h2 {
  margin: 0 0 10px;
  font-size: 24px;
}
.vis-event-about__ghost {
  display: none !important;
}
.vis-event-about .contacts-details {
  margin: 0 0 8px;
}
.vis-event-about .contacts-info_content {
  justify-content: flex-start !important;
  max-width: 600px;
}
.vis-event-about {
  display: block !important;
}
.vis-event-price-line {
  margin: 0 0 19px !important;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2 !important;
}
.vis-event-about .contacts-title {
  margin-bottom: 12px !important;
}
.vis-event-story-content {
  margin-top: 6px !important;
}
.vis-event-story-content .contacts-details {
  margin: 0 0 10px !important;
  line-height: 1.45 !important;
}
.vis-event-story-content .story-body {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}

/* --- Category cards: full-card click overlay --- */
.vis-popular_item_link {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
  text-decoration: none;
}

/* «Где остановиться»: карточки из модуля /hotels */
.vis-blog--where-stay .vis-where-stay-lead {
  margin: -12px 0 26px;
  font-size: 15px;
  line-height: 1.45;
  color: #444;
}
.vis-blog--where-stay .vis-where-stay-lead a {
  font-weight: 600;
  color: #1677ff;
  text-decoration: none;
}
.vis-blog--where-stay .vis-where-stay-lead a:hover {
  text-decoration: underline;
}
.vis-rel_item--hotel {
  position: relative;
}
.vis-rel_item--hotel .vis-rel_item-badge {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1677ff;
  margin: 0 0 6px;
}
.vis-rel_item--hotel .vis-hotel-card-price {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin: 6px 0 4px;
}

/* --- DLE video blocks (dle_video_begin) --- */
.dleplyrplayer {
  width: 100% !important;
  max-width: 1000px;
  margin: 16px auto;
}
.dleplyrplayer video {
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 10px;
}

/* Post hero: обложка + кадры из галереи, кроссфейд */
section#story {
  margin-top: 10px;
}
#story .post-hero {
  margin: 0;
}
#story .post-hero__media {
  position: relative;
  width: 100%;
  height: clamp(320px, 50vw, 560px);
  border-radius: 14px;
  overflow: hidden;
  background: #e8e8e8;
}
#story .post-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}
#story .post-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#story .post-hero__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}
#story .post-hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}
#story .post-hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  #story .post-hero__slide {
    transition-duration: 0.01ms;
  }
}
#story .post-hero__title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  margin: 0;
  padding: 0 20px;
  width: 100%;
  max-width: min(920px, 100%);
  box-sizing: border-box;
  font-family: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

/* Gallery lightbox (same-page smooth open) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
}
.lightbox.is-open {
  display: block;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(0,0,0,.35), rgba(0,0,0,.82));
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .28s ease;
}
.lightbox.is-open .lightbox__backdrop {
  opacity: 1;
}
.lightbox__figure {
  position: absolute;
  inset: 24px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(.94) translateY(10px);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .3s ease;
}
.lightbox.is-open .lightbox__figure {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.lightbox__figure img {
  max-width: min(96vw, 1400px);
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(0,0,0,.45);
  background: #111;
  transition: transform .28s ease, opacity .28s ease;
}
.lightbox.slide-left .lightbox__figure img {
  animation: lbSlideLeft .22s ease;
}
.lightbox.slide-right .lightbox__figure img {
  animation: lbSlideRight .22s ease;
}
@keyframes lbSlideLeft {
  from { opacity: .65; transform: translateX(22px) scale(.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes lbSlideRight {
  from { opacity: .65; transform: translateX(-22px) scale(.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
.lightbox__caption {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,.55);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  max-width: min(90vw, 860px);
  text-align: center;
}
.lightbox__counter {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #fff;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.16);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(18,18,18,.58);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
/* Keep arrows centered relative to image zone, not viewport edges */
.lightbox__nav--prev {
  left: max(10px, calc(50% - min(48vw, 700px) - 56px));
}
.lightbox__nav--next {
  right: max(10px, calc(50% - min(48vw, 700px) - 56px));
}
.lightbox__nav:hover { background: rgba(18,18,18,.78); }

/* 3D tour inner page (DLE fullstory-video.tpl) */
.tour3d-dle-story { padding-bottom: 32px; }
.tour3d-dle-slider { position: relative; }
.tour3d-dle-slider .slides { position: relative; min-height: 260px; }
.tour3d-dle-slide {
  display: none;
}
.tour3d-dle-slide.active {
  display: block;
}
.tour3d-dle-slide img {
  width: 100%;
  max-height: min(72vh, 640px);
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.tour3d-dle-titlewrap { padding: 28px 0 12px; text-align: center; }
.tour3d-dle-detail .tour3d-matterport-iframe,
.tour3d-dle-embed-wrap .tour3d-matterport-iframe {
  width: 100%;
  min-height: 420px;
  height: 68vh;
  max-height: 900px;
  border: 0;
  margin-top: 18px;
  display: block;
}
.tour3d-dle-fulltext { display: block; margin-bottom: 12px; line-height: 1.65; }

@media (max-width: 900px) {
  .admin-antd .admin-layout { grid-template-columns: 1fr; }
}
