/* =====================================================
   TinyMCE Content
   استایل محتوای داخل ویرایشگر
   ===================================================== */

body {
  font-family: "Farhang", sans-serif;
  font-size: 16px;
  line-height: 2;
  color: #333;
  background: #fff;
  margin: 20px;
}

/* =====================================================
   Headings
   ===================================================== */

h2 {
  font-size: 2rem;
  line-height: 1.5;
  margin: 2rem 0 1rem;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.5;
  margin: 1.5rem 0 1rem;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 1.25rem 0 0.75rem;
}

/* =====================================================
   Paragraph
   ===================================================== */
p {
  margin: 0 0 1rem;
}
/* =====================================================
   Links
   ===================================================== */
a {
  text-decoration: underline;
}
/* =====================================================
   Images
   ===================================================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.festival-block {
  margin: 60px 0 auto;
}

.mce-content-body img {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 1.5rem 0;
}

figcaption {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* =====================================================
   Lists
   ===================================================== */

ul,
ol {
  margin: 1rem 0;
  padding-right: 2rem;
}

li {
  margin-bottom: 0.4rem;
}

/* =====================================================
   Blockquote
   ===================================================== */

blockquote,
.tinymce-quote {
  margin: 2rem 0;
  padding: 20px 25px;
  border-right: 5px solid var(--color-primary, #4f7f3b);
  background: #f5f5f5;
  border-radius: 10px;
  color: #444;
}

blockquote p,
.tinymce-quote p {
  margin: 0;
}

/* =====================================================
   Table
   ===================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th,
td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: right;
}

th {
  font-weight: 700;
}

/* =====================================================
   Video / iframe
   ===================================================== */

iframe {
  max-width: 100%;
}

/* =====================================================
   Tablet
   ===================================================== */

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   Mobile
   ===================================================== */

@media (max-width: 768px) {
  body {
    margin: 15px;
    font-size: 15px;
  }

  h2 {
    font-size: 1.7rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  table {
    display: block;
    overflow-x: auto;
  }
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery .gallery-item img {
    height: auto;
  }
}

/* ==========================
   Gray Section
========================== */

.gray-section {
  position: relative;
  /* background: #d8d8d8; */
  padding: 60px;
  overflow: hidden;
}

/* ==========================
   Gallery
========================== */

.gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  z-index: 2;
}
.gallery .gallery-item {
  position: relative;
}
.gallery-item:hover {
  outline: 2px dashed #999;
}
.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 25px;
  display: block;
}
/* ==========================
   Decorations
========================== */
/* gray circle block1*/
.block-1 .gray-section::after {
  content: "";
  position: absolute;
  width: clamp(200px, 14vw, 300px);
  aspect-ratio: 1;
  background-image: url("../images/decoration/festivals/decor4.png");
  background-size: contain;
  background-repeat: no-repeat;
  top: 50px;
  left: 30%;
  pointer-events: none;
  z-index: 1;
}

.block-1 .gray-section::before {
  content: "";
  position: absolute;
  width: clamp(100px, 14vw, 200px);
  aspect-ratio: 1;
  background-image: url("../images/decoration/festivals/decor4.png");
  background-size: contain;
  background-repeat: no-repeat;
  bottom: clamp(10px, 3vw, 40px);
  right: clamp(-35px, -4vw, -70px);
  pointer-events: none;
}
/* gray circle block2*/
.block-2 .gray-section::after {
  content: "";
  position: absolute;
  width: clamp(100px, 14vw, 200px);
  aspect-ratio: 1;
  background-image: url("../images/decoration/festivals/decor4.png");
  background-size: contain;
  background-repeat: no-repeat;
  top: 50px;
  left: 30%;
  pointer-events: none;
  z-index: 1;
}

.block-2 .gray-section::before {
  content: "";
  position: absolute;
  width: clamp(80px, 14vw, 200px);
  aspect-ratio: 1;
  background-image: url("../images/decoration/festivals/decor4.png");
  background-size: contain;
  background-repeat: no-repeat;
  bottom: clamp(10px, 3vw, 40px);
  right: clamp(-35px, -4vw, -70px);
  pointer-events: none;
}

.decor-none::before,
.decor-none::after {
  display: none;
}
.decor-orange-circle::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: -10px;
  left: 100px;
  background: url("../images/decoration/festivals/decor1.png") center / contain
    no-repeat;
  z-index: 2;
}
.decor-curved-line1::before {
  content: "";
  position: absolute;
  width: clamp(24px, 3vw, 40px);
  height: clamp(24px, 3vw, 40px);
  right: clamp(-10px, -1vw, -20px);
  bottom: clamp(10px, 2vw, 20px);
  background: url("../images/decoration/festivals/decor2.png") center / contain
    no-repeat;
  z-index: 2;
}
.decor-curved-line2::before {
  content: "";
  position: absolute;
  width: clamp(24px, 3vw, 40px);
  height: clamp(24px, 3vw, 40px);
  top: clamp(20px, -1vw, 40px);
  /* bottom: clamp(10px, 2vw, 20px); */
  left: clamp(-10px, -1vw, -20px);
  background: url("../images/decoration/festivals/decor3.png") center / contain
    no-repeat;
  z-index: 2;
}
