.c-pointer {
  cursor: pointer;
}
html {
  scroll-behavior: smooth;
}

/* ========== CONTACT FORM FIX ========== */
.dizme_tm_contact .contact_form .g-recaptcha {
  position: relative;
  z-index: 2;
}
.dizme_tm_contact .contact_form .dizme_tm_button {
  position: relative;
  z-index: 1;
  float: none;
  clear: both;
  padding-top: 0;
}

/* ========== SIDE SHOWCASE PANELS ========== */
.side-panel {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9990;
  display: flex;
  align-items: center;
}
.side-panel.left { left: 0; }
.side-panel.right { right: 0; }
.side-panel .sp-tab {
  writing-mode: vertical-lr;
  cursor: pointer;
  padding: 14px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}
.side-panel.left .sp-tab {
  background: linear-gradient(180deg, #6c5ce7, #a29bfe);
  border-radius: 0 10px 10px 0;
  text-orientation: mixed;
}
.side-panel.right .sp-tab {
  background: linear-gradient(180deg, #0984e3, #74b9ff);
  border-radius: 10px 0 0 10px;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.side-panel .sp-tab:hover { filter: brightness(1.1); }
.side-panel .sp-tab svg { flex-shrink: 0; }
.side-panel .sp-drawer {
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  transition: all 0.35s ease;
  width: 0;
  opacity: 0;
  pointer-events: none;
}
.side-panel.left .sp-drawer { border-radius: 0 14px 14px 0; }
.side-panel.right .sp-drawer { border-radius: 14px 0 0 14px; }
.side-panel.open .sp-drawer {
  width: 220px;
  opacity: 1;
  pointer-events: auto;
  padding: 8px 0;
}
.side-panel .sp-drawer::-webkit-scrollbar { width: 3px; }
.side-panel .sp-drawer::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.sp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
  border-bottom: 1px solid #f0f0f0;
}
.sp-item:last-child { border-bottom: none; }
.sp-item:hover { background: #f8f9fa; }
.sp-item img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f0;
}
.sp-item-info {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.sp-item-info .sp-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.sp-item-info .sp-link {
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 8px;
  border-radius: 5px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
  text-transform: uppercase;
}
.side-panel.right .sp-item-info .sp-link {
  background: linear-gradient(135deg, #0984e3, #74b9ff);
}
.sp-item:hover .sp-link {
  filter: brightness(1.15);
  transform: scale(1.03);
}
.sp-empty {
  padding: 20px 14px;
  font-size: 12px;
  color: #aaa;
  text-align: center;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  .side-panel .sp-tab { padding: 10px 6px; font-size: 9px; letter-spacing: 0.5px; }
  .side-panel.open .sp-drawer { width: 190px; }
  .sp-item { padding: 8px 10px; gap: 8px; }
  .sp-item img { width: 24px; height: 24px; }
  .sp-item-info .sp-name { font-size: 11px; }
  .sp-item-info .sp-link { font-size: 8px; padding: 2px 6px; }
}
@media (max-width: 480px) {
  .side-panel .sp-tab { padding: 8px 5px; font-size: 8px; }
  .side-panel.open .sp-drawer { width: 170px; }
}

/* Genel mobil düzeltmeler */
@media (max-width: 1040px) {
  .dizme_tm_hero .social ul { display: flex; justify-content: center; flex-wrap: wrap; }
  .dizme_tm_hero .social { padding-left: 0; display: flex; justify-content: center; }
}
@media (max-width: 768px) {
  /* Hero */
  .dizme_tm_hero .button { flex-direction: column; align-items: center; gap: 15px; }
  .dizme_tm_hero .social { padding-left: 0; }
  .dizme_tm_hero .social ul { justify-content: center; gap: 4px; }
  .dizme_tm_hero .social ul li { margin: 0 2px; }
  .dizme_tm_hero .social ul li a.social-icon { width: 34px; height: 34px; }
  .dizme_tm_hero .social ul li a.social-icon svg { width: 16px; height: 16px; }

  /* Process */
  .dizme_tm_process ul li .list_inner { padding: 20px 16px; }
  .dizme_tm_process ul li .list_inner .title h3 { font-size: 18px; }
  .dizme_tm_process ul li .list_inner .text p { font-size: 14px; }

  /* Tech icons */
  .tech_icons { gap: 10px; justify-content: center; }
  .tech_icon_item { width: 65px; height: 65px; }
  .tech_icon_item i { font-size: 22px; margin-bottom: 4px; }
  .tech_icon_item img { width: 28px; height: 28px; margin-bottom: 4px; }
  .tech_icon_item span { font-size: 9px; }

  /* Contact */
  .dizme_tm_contact .left ul li .list_inner { flex-direction: row; gap: 14px; }
  .dizme_tm_contact .left .icon { min-width: 50px; width: 50px; height: 50px; }
  .dizme_tm_contact .left .icon i { font-size: 18px; }
  .g-recaptcha { transform: scale(0.85); transform-origin: 0 0; }

  /* Portfolio glass cards */
  .pf_box { flex: 0 0 240px; }
  .pf_box h4 { font-size: 15px; padding: 0 14px; }
  .pf_box p { font-size: 13px; padding: 0 14px 14px; }
  .pf_box_img { height: 130px; }
  .pf_box_btn { padding: 0 14px 14px; }

  /* Copyright */
  .dizme_tm_copyright { padding: 30px 0 35px; }
  .dizme_tm_copyright .left p { font-size: 13px; }
  .dizme_tm_copyright .right ul li a { font-size: 13px; }
}
@media (max-width: 480px) {
  .dizme_tm_hero .name h3 { font-size: 34px; }
  .dizme_tm_hero .job p { font-size: 15px; }
  .dizme_tm_hero .hello h3 { font-size: 18px; }
  .dizme_tm_hero .text p { font-size: 14px; }
  .dizme_tm_hero .avatar img { max-width: 180px; max-height: 180px; }
  .dizme_tm_hero .social ul li a.social-icon { width: 30px; height: 30px; }
  .dizme_tm_hero .social ul li a.social-icon svg { width: 14px; height: 14px; }

  .dizme_tm_main_title span { font-size: 16px; }
  .dizme_tm_main_title h3 { font-size: 26px; }
  .dizme_tm_main_title p { font-size: 13px; }

  .dizme_tm_about .right .title span { font-size: 16px; }
  .dizme_tm_about .right .title h3 { font-size: 26px; }
  .dizme_tm_about .right .text p { font-size: 14px; }
  .dizme_tm_about .left .image img { max-width: 240px; max-height: 240px; }
  .dizme_tm_about .numbers .wrapper h3 { font-size: 36px; }

  .pf_box { flex: 0 0 220px; min-height: 140px; }
  .pf_section_header h3 { font-size: 16px; }
  .pf_box_img { height: 110px; }

  .tech_icons { gap: 8px; }
  .tech_icon_item { width: 56px; height: 56px; border-radius: 10px; }
  .tech_icon_item i { font-size: 20px; }
  .tech_icon_item img { width: 24px; height: 24px; }
  .tech_icon_item span { font-size: 8px; }

  .dizme_tm_services .service_list .title h3 { font-size: 20px; }
  .dizme_tm_services .service_list .price { font-size: 16px; }
  .dizme_tm_services .service_list .text p { font-size: 13px; }

  .dizme_tm_contact .contact_inner { margin-top: 40px; margin-bottom: 40px; }
  .dizme_tm_contact input { font-size: 14px; }
  .dizme_tm_contact textarea { font-size: 14px; min-height: 80px; }
  .g-recaptcha { transform: scale(0.77); transform-origin: 0 0; }

  .logo_text { font-size: 15px; }
  .dizme_tm_mobile_menu .logo_text { font-size: 15px; }
  .logo_wrap img { max-height: 28px; }
}

/* ========== HERO SOCIAL ICONS ========== */
.dizme_tm_hero .social ul li a.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}
.dizme_tm_hero .social ul li a.social-icon:hover {
  background: rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.dizme_tm_hero .social ul li {
  margin: 0 3px;
}

/* ========== TECH ICONS ========== */
.tech_icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}
.tech_icon_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.tech_icon_item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.12);
}
.tech_icon_item i {
  font-size: 28px;
  color: #333;
  margin-bottom: 6px;
}
.tech_icon_item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: 6px;
}
.tech_icon_item span {
  font-size: 11px;
  color: #666;
  font-weight: 500;
}

/* ========== LOGO + BONYON.DEV ========== */
.logo_wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo_text {
  font-family: 'Jost', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #000;
  letter-spacing: 1px;
}
.logo_dot {
  color: #000;
  font-weight: 800;
}
.dizme_tm_mobile_menu .logo_text {
  font-size: 18px;
}
@media (max-width: 576px) {
  .logo_text {
    font-size: 16px;
  }
}
/* ========== /LOGO + BONYON.DEV ========== */

.owl-dots.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
  margin-top: 64px;
}

span.swiper-pagination-bullet {
  display: inline-block;
  width: 15px;
  height: 15px;
  background-color: #f75023;
  position: relative;
  margin: 0px 12px;
  border-radius: 50%;
  cursor: pointer;
}

span.swiper-pagination-bullet.swiper-pagination-bullet-active::before {
  position: absolute;
  content: "";
  top: -5px;
  bottom: -5px;
  left: -5px;
  right: -5px;

  border-radius: 100%;
  border: 2px solid #ffb324;
  /* z-index: -1; */
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.hidden_content,
.service_hidden_details,
.news_hidden_details {
  display: none;
}

.hidden_content.active,
.service_hidden_details.active,
.news_hidden_details.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  background: rgba(0,0,0,0.6);
  overflow-y: auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* ========== UNIFORM PORTFOLIO GRID ========== */
.dizme_tm_portfolio .portfolio_list ul.grid {
  display: flex;
  flex-wrap: wrap;
}
.dizme_tm_portfolio .portfolio_list ul.grid li.grid-item {
  width: 33.333%;
}
.dizme_tm_portfolio .portfolio_list ul.grid li.grid-item .inner .entry {
  position: relative;
  overflow: hidden;
}
.dizme_tm_portfolio .portfolio_list ul.grid li.grid-item .inner .entry .main {
  padding-bottom: 75%; /* 4:3 uniform aspect ratio */
  height: 0;
}
.dizme_tm_portfolio .portfolio_list ul.grid li.grid-item .inner .entry a.project_modal_link {
  display: block;
  position: relative;
  cursor: pointer;
}
.dizme_tm_portfolio .portfolio_list ul.grid li.grid-item .inner .entry a.project_modal_link::after {
  content: '\e907';
  font-family: 'xpicons';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 50px;
  height: 50px;
  background: rgba(247, 80, 35, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  z-index: 3;
  transition: transform 0.3s ease;
}
.dizme_tm_portfolio .portfolio_list ul.grid li.grid-item .inner .entry:hover a.project_modal_link::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Project modal specific styles */
.project_modal_content.active {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
}
.project_modal_content .dizme_tm_modalbox {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}
.project_modal_content .popup_details .top_image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.project_modal_content .main_details {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}
.project_modal_content .main_details .textbox {
  flex: 2;
}
.project_modal_content .main_details .detailbox {
  flex: 1;
}
.project_modal_content .main_details .detailbox ul li {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}
.project_modal_content .main_details .detailbox ul li .first {
  font-weight: 600;
  min-width: 90px;
}
@media (max-width: 768px) {
  .dizme_tm_portfolio .portfolio_list ul.grid li.grid-item {
    width: 50%;
  }
  .project_modal_content .main_details {
    flex-direction: column;
    gap: 15px;
  }
}
@media (max-width: 480px) {
  .dizme_tm_portfolio .portfolio_list ul.grid li.grid-item {
    width: 100%;
  }
}
/* ========== /UNIFORM PORTFOLIO GRID ========== */

/* ========== PORTFOLIO GLASS + HORIZONTAL SCROLL ========== */
.pf_section {
  margin-bottom: 32px;
}
.pf_section_header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.pf_section_icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf_section_icon i {
  font-size: 18px;
  color: #333;
}
.pf_section_header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0,0,0,0.08);
  flex: 1;
}

/* Horizontal scroll area */
.pf_scroll_wrap {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.pf_scroll_wrap::-webkit-scrollbar {
  display: none;
}
.pf_scroll_wrap.dragging {
  cursor: grabbing;
}
.pf_scroll_track {
  display: flex;
  gap: 16px;
  padding: 4px 2px;
}

/* Glass card */
.pf_box {
  flex: 0 0 280px;
  min-height: 180px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  user-select: none;
  overflow: hidden;
}
.pf_box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.75);
}
.pf_box_icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.pf_box_icon i {
  font-size: 20px;
  color: #444;
}
.pf_box h4 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 8px 0;
  line-height: 1.3;
  padding: 0 18px;
}
.pf_box p {
  font-size: 14px;
  line-height: 1.55;
  color: #6f6b80;
  margin: 0;
  padding: 0 18px 18px 18px;
}

/* Proje görseli */
.pf_box_img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}
.pf_box_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.pf_box:hover .pf_box_img img {
  transform: scale(1.06);
}

/* Proje butonu */
.pf_box_btn {
  padding: 0 18px 18px 18px;
}
.pf_box_btn a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}
.pf_box_btn a i {
  font-size: 12px;
  transition: transform 0.3s ease;
}
.pf_box_btn a:hover {
  background: #1a1a2e;
  color: #fff;
}
.pf_box_btn a:hover i {
  transform: translateX(3px);
}

@media (max-width: 576px) {
  .pf_box {
    flex: 0 0 240px;
    min-height: 160px;
    padding: 20px;
  }
  .pf_section_header h3 {
    font-size: 18px;
  }
}
/* ========== /PORTFOLIO GLASS + HORIZONTAL SCROLL ========== */

.mfp-bg,
.mfp-container {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

img.mfp-img {
  box-shadow: 0 0 8px rgb(0 0 0 / 60%);
  position: absolute;
  max-height: 392px;
  padding: 0 !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.mfp-img-container .mfp-content {
  max-width: 400px !important;
}

/* Magnific Popup CSS */
.mfp-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: #0b0b0b;
  opacity: 0.8;
}

.mfp-wrap {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1043;
  overflow: auto;
}

.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 0 8px;
  box-sizing: border-box;
}

.mfp-container:before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.mfp-align-top .mfp-container:before {
  display: none;
}

.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045;
}

.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
  width: 100%;
  cursor: auto;
}

.mfp-ajax-cur {
  cursor: progress;
}

.mfp-zoom-out-cur,
.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  cursor: -moz-zoom-out;
  cursor: -webkit-zoom-out;
  cursor: zoom-out;
}

.mfp-zoom {
  cursor: pointer;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
  cursor: zoom-in;
}

.mfp-auto-cursor .mfp-content {
  cursor: auto;
}

.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.mfp-loading.mfp-figure {
  display: none;
}

.mfp-hide {
  display: none !important;
}

.mfp-preloader {
  color: #ccc;
  position: absolute;
  top: 50%;
  width: auto;
  text-align: center;
  margin-top: -0.8em;
  left: 8px;
  right: 8px;
  z-index: 1044;
}
.mfp-preloader a {
  color: #ccc;
}
.mfp-preloader a:hover {
  color: #fff;
}

.mfp-s-ready .mfp-preloader {
  display: none;
}

.mfp-s-error .mfp-content {
  display: none;
}

button.mfp-close,
button.mfp-arrow {
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  box-shadow: none;
  touch-action: manipulation;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

.mfp-close {
  width: 44px;
  height: 44px;
  line-height: 44px;
  position: absolute;
  right: 0;
  top: 0;
  text-decoration: none;
  text-align: center;
  opacity: 0.65;
  padding: 0 0 18px 10px;
  color: #fff;
  font-style: normal;
  font-size: 28px;
  font-family: Arial, Baskerville, monospace;
}
.mfp-close:hover,
.mfp-close:focus {
  opacity: 1;
}
.mfp-close:active {
  top: 1px;
}

.mfp-close-btn-in .mfp-close {
  color: #333;
}

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
  color: #fff;
  right: -6px;
  text-align: right;
  padding-right: 6px;
  width: 100%;
}

.mfp-counter {
  position: absolute;
  top: 0;
  right: 0;
  color: #ccc;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.mfp-arrow {
  position: absolute;
  opacity: 0.65;
  margin: 0;
  top: 50%;
  margin-top: -55px;
  padding: 0;
  width: 90px;
  height: 110px;
  -webkit-tap-highlight-color: transparent;
}
.mfp-arrow:active {
  margin-top: -54px;
}
.mfp-arrow:hover,
.mfp-arrow:focus {
  opacity: 1;
}
.mfp-arrow:before,
.mfp-arrow:after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  left: 0;
  top: 0;
  margin-top: 35px;
  margin-left: 35px;
  border: medium inset transparent;
}
.mfp-arrow:after {
  border-top-width: 13px;
  border-bottom-width: 13px;
  top: 8px;
}
.mfp-arrow:before {
  border-top-width: 21px;
  border-bottom-width: 21px;
  opacity: 0.7;
}

.mfp-arrow-left {
  left: 0;
}
.mfp-arrow-left:after {
  border-right: 17px solid #fff;
  margin-left: 31px;
}
.mfp-arrow-left:before {
  margin-left: 25px;
  border-right: 27px solid #3f3f3f;
}

.mfp-arrow-right {
  right: 0;
}
.mfp-arrow-right:after {
  border-left: 17px solid #fff;
  margin-left: 39px;
}
.mfp-arrow-right:before {
  border-left: 27px solid #3f3f3f;
}

.mfp-iframe-holder {
  padding-top: 40px;
  padding-bottom: 40px;
}
.mfp-iframe-holder .mfp-content {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 0;
  width: 100%;
  max-width: 900px;
  width: 100%;
  z-index: 1044;
  position: fixed;
  outline: none !important;
  -webkit-backface-visibility: hidden;
}
.mfp-iframe-holder .mfp-close {
  /* top: -40px; */
}

.mfp-iframe-scaler {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%;
}
.mfp-iframe-scaler iframe {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  background: #000;
}

/* Main image in popup */
img.mfp-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  box-sizing: border-box;
  padding: 40px 0 40px;
  margin: 0 auto;
}

/* The shadow behind the image */
.mfp-figure {
  line-height: 0;
}
.mfp-figure:after {
  content: "";
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 40px;
  display: block;
  right: 0;
  width: auto;
  height: auto;
  z-index: -1;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  background: #444;
}
.mfp-figure small {
  color: #bdbdbd;
  display: block;
  font-size: 12px;
  line-height: 14px;
}
.mfp-figure figure {
  margin: 0;
}

.mfp-bottom-bar {
  margin-top: -36px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  cursor: auto;
}

.mfp-title {
  text-align: left;
  line-height: 18px;
  color: #f3f3f3;
  word-wrap: break-word;
  padding-right: 36px;
}

.mfp-image-holder .mfp-content {
  max-width: 100%;
}

.mfp-gallery .mfp-image-holder .mfp-figure {
  cursor: pointer;
}

@media screen and (max-width: 800px) and (orientation: landscape),
  screen and (max-height: 300px) {
  /**
          * Remove all paddings around the image on small screen
          */
  .mfp-img-mobile .mfp-image-holder {
    padding-left: 0;
    padding-right: 0;
  }
  .mfp-img-mobile img.mfp-img {
    padding: 0;
  }
  .mfp-img-mobile .mfp-figure:after {
    top: 0;
    bottom: 0;
  }
  .mfp-img-mobile .mfp-figure small {
    display: inline;
    margin-left: 5px;
  }
  .mfp-img-mobile .mfp-bottom-bar {
    background: rgba(0, 0, 0, 0.6);
    bottom: 0;
    margin: 0;
    top: auto;
    padding: 3px 5px;
    position: fixed;
    box-sizing: border-box;
  }
  .mfp-img-mobile .mfp-bottom-bar:empty {
    padding: 0;
  }
  .mfp-img-mobile .mfp-counter {
    right: 5px;
    top: 3px;
  }
  .mfp-img-mobile .mfp-close {
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    text-align: center;
    padding: 0;
  }
}

@media all and (max-width: 900px) {
  .mfp-arrow {
    -webkit-transform: scale(0.75);
    transform: scale(0.75);
  }
  .mfp-arrow-left {
    -webkit-transform-origin: 0;
    transform-origin: 0;
  }
  .mfp-arrow-right {
    -webkit-transform-origin: 100%;
    transform-origin: 100%;
  }
  .mfp-container {
    padding-left: 6px;
    padding-right: 6px;
  }
}
