/*
Theme Name: Avalon Theme
Author: Сергей Нужнов
Author URI: https://webarium.ru
Description: Новая тема для сайта
Version: 1.00.00
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags:
*/



table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: #333;
}

table thead {
  background-color: #f5f5f5;
}

table th, table td {
  padding: 12px 16px;
  border: 1px solid #ccc;
  text-align: left;
}

table th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

table tbody tr:hover {
  background-color: #f0f0f0;
}
.tf-gallery-shortcode-section {
  padding: 48px 0 72px;
}

.tf-gallery-shortcode-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.tf-gallery-shortcode-head__left {
  max-width: 900px;
}

.tf-gallery-shortcode-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #edf9ef;
  color: #16813a;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.tf-gallery-shortcode-title {
  margin: 0 0 14px;
  font-size: 54px;
  line-height: 1.04;
  font-weight: 800;
  color: #0d1833;
}

.tf-gallery-shortcode-text {
  margin: 0;
  color: #61708f;
  font-size: 18px;
  line-height: 1.7;
}

.tf-gallery-shortcode-badge {
  padding: 16px 22px;
  border-radius: 18px;
  background: #edf9ef;
  border: 1px solid #bfe3c4;
  color: #16813a;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.tf-gallery-shortcode-box {
  padding: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e4e9f0;
  border-radius: 28px;
  box-shadow: 0 14px 35px rgba(13, 24, 51, 0.05);
}

/* оформление заголовка, который приходит из шорткода */
.tf-gallery-shortcode-box .works-shortcode-head {
  margin-bottom: 22px;
}

.tf-gallery-shortcode-box .works-shortcode-head h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.12;
  font-weight: 800;
  color: #0d1833;
}

/* сетка из шорткода */
.tf-gallery-shortcode-box .works-video-grid {
  display: grid;
  gap: 22px;
}

.tf-gallery-shortcode-box .works-video-grid--horizontal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tf-gallery-shortcode-box .works-video-grid--vertical {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* карточки из шорткода */
.tf-gallery-shortcode-box .works-video-card {
  min-width: 0;
}

.tf-gallery-shortcode-box .works-video-open {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(13, 24, 51, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tf-gallery-shortcode-box .works-video-open:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(13, 24, 51, 0.09);
}

.tf-gallery-shortcode-box .works-video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #eef2f7;
}

.tf-gallery-shortcode-box .works-video-card--horizontal .works-video-thumb {
  aspect-ratio: 16 / 9;
}

.tf-gallery-shortcode-box .works-video-card--vertical .works-video-thumb {
  aspect-ratio: 9 / 16;
}

.tf-gallery-shortcode-box .works-video-thumb__image,
.tf-gallery-shortcode-box .works-video-thumb img,
.tf-gallery-shortcode-box .works-video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tf-gallery-shortcode-box .works-video-thumb__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: #6b7690;
  font-size: 18px;
  font-weight: 700;
}

.tf-gallery-shortcode-box .works-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(49, 163, 54, 0.95);
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.tf-gallery-shortcode-box .works-video-play::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 24px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
}

.tf-gallery-shortcode-box .works-video-meta {
  display: block;
  padding: 18px 18px 20px;
}

.tf-gallery-shortcode-box .works-video-title {
  display: block;
  color: #0d1833;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
}

.tf-gallery-shortcode-box .works-video-desc {
  display: block;
  margin-top: 8px;
  color: #61708f;
  font-size: 15px;
  line-height: 1.6;
}

.tf-gallery-shortcode-box .works-video-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tf-gallery-shortcode-box .works-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf9ef;
  color: #16813a;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .tf-gallery-shortcode-box .works-video-grid--horizontal {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tf-gallery-shortcode-box .works-video-grid--vertical {
      grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .tf-gallery-shortcode-title {
      font-size: 42px;
  }

  .tf-gallery-shortcode-text {
      font-size: 16px;
  }

  .tf-gallery-shortcode-box .works-shortcode-head h2 {
      font-size: 30px;
  }

  .tf-gallery-shortcode-box .works-video-grid--horizontal,
  .tf-gallery-shortcode-box .works-video-grid--vertical {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tf-gallery-shortcode-section {
      padding: 24px 0 50px;
  }

  .tf-gallery-shortcode-title {
      font-size: 34px;
  }

  .tf-gallery-shortcode-box {
      padding: 18px;
      border-radius: 22px;
  }

  .tf-gallery-shortcode-box .works-shortcode-head h2 {
      font-size: 24px;
  }

  .tf-gallery-shortcode-box .works-video-grid--horizontal,
  .tf-gallery-shortcode-box .works-video-grid--vertical {
      grid-template-columns: 1fr;
  }

  .tf-gallery-shortcode-badge {
      white-space: normal;
  }
}
.tf-gallery-shortcode-box .fwgp-video-grid {
  display: grid;
  gap: 22px;
}

.tf-gallery-shortcode-box .fwgp-video-grid--horizontal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tf-gallery-shortcode-box .fwgp-video-grid--vertical {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tf-gallery-shortcode-box .fwgp-video-card {
  min-width: 0;
}

.tf-gallery-shortcode-box .fwgp-video-open {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(13, 24, 51, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tf-gallery-shortcode-box .fwgp-video-open:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(13, 24, 51, 0.09);
}

.tf-gallery-shortcode-box .fwgp-video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #eef2f7;
}

.tf-gallery-shortcode-box .fwgp-video-card--horizontal .fwgp-video-thumb {
  aspect-ratio: 16 / 9;
}

.tf-gallery-shortcode-box .fwgp-video-card--vertical .fwgp-video-thumb {
  aspect-ratio: 9 / 16;
}

.tf-gallery-shortcode-box .fwgp-video-thumb img,
.tf-gallery-shortcode-box .fwgp-video-thumb video,
.tf-gallery-shortcode-box .fwgp-video-thumb__image,
.tf-gallery-shortcode-box .fwgp-video-thumb__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tf-gallery-shortcode-box .fwgp-video-thumb__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: #6b7690;
  font-size: 18px;
  font-weight: 700;
}

.tf-gallery-shortcode-box .fwgp-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(49, 163, 54, 0.95);
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.tf-gallery-shortcode-box .fwgp-video-play::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 24px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
}

.tf-gallery-shortcode-box .fwgp-video-meta {
  display: block;
  padding: 18px 18px 20px;
}

.tf-gallery-shortcode-box .fwgp-video-title {
  display: block;
  color: #0d1833;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
}

.tf-gallery-shortcode-box .fwgp-video-desc {
  display: block;
  margin-top: 8px;
  color: #61708f;
  font-size: 15px;
  line-height: 1.6;
}

.tf-gallery-shortcode-box .fwgp-video-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tf-gallery-shortcode-box .fwgp-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf9ef;
  color: #16813a;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .tf-gallery-shortcode-box .fwgp-video-grid--horizontal {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tf-gallery-shortcode-box .fwgp-video-grid--vertical {
      grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .tf-gallery-shortcode-box .fwgp-video-grid--horizontal,
  .tf-gallery-shortcode-box .fwgp-video-grid--vertical {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tf-gallery-shortcode-box .fwgp-video-grid--horizontal,
  .tf-gallery-shortcode-box .fwgp-video-grid--vertical {
      grid-template-columns: 1fr;
  }
}.fwgp-shortcode {
  padding: 0;
}

.fwgp-shortcode__head {
  margin-bottom: 24px;
}

.fwgp-shortcode__head h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.12;
  font-weight: 800;
  color: #0d1833;
}

.fwgp-video-grid {
  display: grid;
  gap: 22px;
}

.fwgp-video-grid--horizontal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fwgp-video-grid--vertical {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fwgp-video-card {
  min-width: 0;
}

.fwgp-video-open {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(13, 24, 51, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fwgp-video-open:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(13, 24, 51, 0.09);
}

.fwgp-video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #eef2f7;
}

.fwgp-video-card--horizontal .fwgp-video-thumb {
  aspect-ratio: 16 / 9;
}

.fwgp-video-card--vertical .fwgp-video-thumb {
  aspect-ratio: 9 / 16;
}

.fwgp-video-thumb img,
.fwgp-video-thumb video,
.fwgp-video-thumb__image,
.fwgp-video-thumb__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fwgp-video-thumb__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: #6b7690;
  font-size: 18px;
  font-weight: 700;
}

.fwgp-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(49, 163, 54, 0.95);
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.fwgp-video-play::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 24px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
}

.fwgp-video-meta {
  display: block;
  padding: 18px 18px 20px;
}

.fwgp-video-title {
  display: block;
  color: #0d1833;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
}

.fwgp-video-desc {
  display: block;
  margin-top: 8px;
  color: #61708f;
  font-size: 15px;
  line-height: 1.6;
}

.fwgp-video-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.fwgp-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf9ef;
  color: #16813a;
  font-size: 13px;
  font-weight: 700;
}

.fwgp-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.fwgp-photo-card {
  display: block;
  width: 100%;
  padding: 0;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(13, 24, 51, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fwgp-photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(13, 24, 51, 0.09);
}

.fwgp-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.fwgp-photo-card:hover img {
  transform: scale(1.04);
}

.fwgp-video-modal,
.fwgp-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.fwgp-video-modal__overlay,
.fwgp-photo-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 35, 0.74);
  backdrop-filter: blur(2px);
}

.fwgp-video-modal__dialog,
.fwgp-photo-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 32px));
  margin: 40px auto;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.fwgp-video-modal__close,
.fwgp-photo-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(13, 24, 51, 0.08);
  color: #0d1833;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.fwgp-video-modal__content,
.fwgp-photo-modal__content {
  padding: 18px;
}

.fwgp-video-modal__header,
.fwgp-photo-modal__header {
  padding: 0 50px 14px 6px;
}

.fwgp-video-modal__title,
.fwgp-photo-modal__title {
  color: #0d1833;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
}

.fwgp-video-modal__player-wrap {
  background: #000;
  border-radius: 18px;
  overflow: hidden;
}

#fwgpVideoPlayer {
  display: block;
  width: 100%;
  max-height: 78vh;
  background: #000;
}

.fwgp-photo-modal__image-wrap {
  background: #f5f7fb;
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
}

#fwgpPhotoModalImage {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #fff;
}

body.fwgp-video-modal-open,
body.fwgp-photo-modal-open {
  overflow: hidden;
}

@media (max-width: 1200px) {
  .fwgp-video-grid--horizontal {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fwgp-video-grid--vertical {
      grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fwgp-photo-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .fwgp-shortcode__head h2 {
      font-size: 30px;
  }

  .fwgp-video-grid--horizontal,
  .fwgp-video-grid--vertical,
  .fwgp-photo-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fwgp-shortcode__head h2 {
      font-size: 24px;
  }

  .fwgp-video-grid--horizontal,
  .fwgp-video-grid--vertical,
  .fwgp-photo-grid {
      grid-template-columns: 1fr;
  }

  .fwgp-video-modal__dialog,
  .fwgp-photo-modal__dialog {
      width: calc(100% - 16px);
      margin: 16px auto;
      border-radius: 18px;
  }

  .fwgp-video-modal__content,
  .fwgp-photo-modal__content {
      padding: 12px;
  }

  .fwgp-video-modal__title,
  .fwgp-photo-modal__title {
      font-size: 18px;
  }
}