/**
 * Default template — CMS image frames (cover / contain, gap-free)
 */

body.cms-active-template-default .cms-template-default .hero-header.hero-header--has-bg {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: var(--dark) !important;
}

body.cms-active-template-default .cms-template-default .def-about-media.def-cms-media {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 400;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  min-height: 0 !important;
}

body.cms-active-template-default .cms-template-default .def-about-media-img,
body.cms-active-template-default .cms-template-default .def-about-media-img[data-cms-field="about.image"] {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
  background: transparent !important;
}

body.cms-active-template-default .cms-template-default .def-offer-bg,
body.cms-active-template-default .cms-template-default .def-cms-bg-layer {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

body.cms-active-template-default .cms-template-default .def-menu-item-media.def-cms-media {
  position: relative;
  width: 100%;
  aspect-ratio: 840 / 280;
  overflow: hidden;
  display: block;
  line-height: 0;
  background: #f4f6f8;
}

body.cms-active-template-default .cms-template-default .def-menu-item-media .def-menu-item-img,
body.cms-active-template-default .cms-template-default .def-menu-item-media img[data-cms-field="menu.tabs.items.image"] {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
  background: transparent !important;
}

body.cms-active-template-default .cms-template-default .def-svc-icon-wrap.def-cms-media {
  width: 60px;
  height: 60px;
  max-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 0;
  background: transparent;
}

body.cms-active-template-default .cms-template-default .def-svc-icon-wrap .def-svc-icon-img,
body.cms-active-template-default .cms-template-default .def-svc-icon-wrap img[data-cms-field="services.items.icon_image"] {
  width: 100% !important;
  height: 100% !important;
  max-width: 60px !important;
  max-height: 60px !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  background: transparent !important;
}

body.cms-active-template-default .cms-template-default .def-team-photo-media.def-cms-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  line-height: 0;
  background: #f4f6f8;
}

body.cms-active-template-default .cms-template-default .def-team-photo-media .def-team-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: transparent;
  transition: 0.5s;
}

body.cms-active-template-default .cms-template-default .team-item:hover .def-team-photo-media .def-team-photo-img {
  transform: scale(1.1);
  filter: blur(5px);
}

body.cms-active-template-default .cms-template-default .def-testimonial-avatar.def-cms-media {
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 50%;
  line-height: 0;
}

body.cms-active-template-default .cms-template-default .def-testimonial-avatar .def-testimonial-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: transparent;
  border-radius: 50%;
}

body.cms-active-template-default .cms-template-default .def-video-media.def-cms-media {
  aspect-ratio: 960 / 480;
  overflow: hidden;
  line-height: 0;
  background: #111;
  max-width: 100%;
}

body.cms-active-template-default .cms-template-default .def-video-media .def-video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: transparent;
}

body.cms-active-template-default .cms-template-default .def-blog-card-media.def-cms-media {
  width: 100%;
  aspect-ratio: 840 / 280;
  overflow: hidden;
  display: block;
  line-height: 0;
  background: #f4f6f8;
  position: relative;
}

body.cms-active-template-default .cms-template-default .def-blog-card-media .def-blog-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: transparent;
}

body.cms-active-template-default .cms-template-default .def-offer-cms-frame--has-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--dark);
}

body.cms-active-template-default .cms-template-default .offer-section {
  background: transparent !important;
  background-image: none !important;
}

body.cms-active-template-default .cms-template-default .def-offer-cms-frame--has-bg > .offer-section__content {
  position: relative;
  z-index: 2;
  width: 100%;
}
