/* =================================
   SLIDER: Maintenance Cases
   ================================= */
.p-maintenance-cases {
  margin-bottom: 70px;
  margin-top: 3px;
  position: relative;
}

.p-maintenance-cases .l-container {
  margin: 0 auto;
  max-width: 100%;
  padding: 20px;
  position: relative;
  width: 1200px;
}

.p-maintenance-cases .c-title-line {
  font-weight: 800;
  margin: 32px 0 17px 7px;
  padding-left: 49px;
  color: #0042a5;
  font-size: 50px;
}
.p-maintenance-cases .c-title-line::before {
  background-color: #0042a5;
  height: 5px;
  width: 32px;
}

.p-maintenance-cases-top .c-heading__wrap {
  margin-bottom: 30px;
}

@media screen and (max-width: 992px) {
  .p-maintenance-cases .c-title-line {
    font-size: 40px;
  }
  .p-maintenance-cases .c-title-line:before {
    width: 30px;
    height: 2px;
  }
  .p-maintenance-cases-top .c-heading__wrap {
    margin-bottom: 22px;
  }
}

@media (max-width: 767px) {
  .p-maintenance-cases .c-title-line {
    font-size: 23px;
  }
  .p-maintenance-cases .l-container {
    padding-inline: 15px;
  }
}

.p-maintenance-cases::after {
  content: "";
  background-color: transparent;
  background-image: radial-gradient(#9ac1fb 2px, transparent 0);
  background-size: 10px 10px;
  background-position: 0 0, 10px 10px;
  width: 19.4%;
  height: 55%;
  position: absolute;
  right: 0;
  top: 92px;
  z-index: -1;
}

.c-cases-slider {
  margin: -11px auto 0;
  max-width: 1240px;
  position: relative;
  z-index: 1;
}

.c-cases-slider .slick-list {
  padding: 10px 0;
}

.c-cases-slider .slick-track {
  display: flex;
  align-items: stretch;
}

.c-cases-slider .slick-slide {
  height: auto;
  margin-left: 16px;
  margin-right: 16px;
  min-height: 320px;
}

.c-cases-slider__arrow {
  background: transparent;
  border: none;
  cursor: pointer;
  display: grid;
  height: 38px;
  place-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  z-index: 5;
}

.c-cases-slider__arrow--prev {
  left: -26px;
}
.c-cases-slider__arrow--next {
  right: -26px;
}

.c-cases-slider__arrow:hover {
  opacity: .7;
}

.slick-arrow.slick-disabled,
.slick-arrow[aria-disabled="true"]{
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.c-case-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 1px 1px 12px 0 rgba(0, 0, 0, 0.4);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.c-case-card:hover {
  opacity: .7;
}

.c-case-card__thumb img {
  display: block;
  height: 174px;
  max-width: none;
  object-fit: cover;
  transform: translateX(-1px);
  width: calc(100% + 2px);
}

.c-case-card__body {
  padding: 21px 20px 20px;
}

.c-case-card__title {
  margin: 0 0 10px;
  color: #072366;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.24;
  text-align: justify;
  letter-spacing: -.04em;
}

.c-case-card__desc p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

@media screen and (max-width: 1300px) {
  .c-cases-slider__arrow--prev {
    left: -20px;
  }

  .c-cases-slider__arrow--next {
    right: -20px;
  }
}

@media screen and (max-width: 1024px) {
  .c-cases-slider__arrow:hover {
    opacity: 1;
  }
}

.c-cases-slider__wrap {
  margin: 0 auto;
  position: relative;
}

@media (max-width: 767px) {
  .c-cases-slider__wrap {
    padding: 10px 5px;
    width: calc(100% - 40px);
  }
  .p-maintenance-cases { margin-top: 0; }
  .c-cases-slider .slick-list {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  .p-maintenance-cases::after { content: none; }
  .c-cases-slider__arrow {
    top: 50%;
    transform: translateY(-50%);
  }
  .c-cases-slider__arrow {
    background: #cdecff;
    border-radius: 50%;
  }
  .c-cases-slider__arrow img {
    width: 50%;
  }
  .c-cases-slider .slick-slide {
    margin-left: 8px;
    margin-right: 8px;
  }
  .c-case-card {
    box-shadow: 1px 1px 10px 0 rgba(0, 0, 0, 0.4);
  }

  .c-cases-slider__arrow--prev {
    left: -32px;
  }
  .c-cases-slider__arrow--next {
    right: -32px;
  }
}

.p-maintenance-cases.is-empty { display: none; }
.p-maintenance-cases.hide-nav .c-cases-slider__nav { display: none; }

@media (min-width: 768px) {
  .c-cases-slider.is-few .slick-list {
    display: flex;
    justify-content: center;
  }
  .c-cases-slider.is-few .slick-track {
    display: flex !important;
    justify-content: center;
    margin: 0 auto !important;
    transform: none !important;
  }
  .c-cases-slider.is-few .slick-slide { float: none; }

  .c-cases-slider.is-single .c-case-card {
    width: 480px !important;
    max-width: 100%;
    margin: 0 auto;
  }
  .c-cases-slider.is-single .slick-track {
      width: 480px !important;
  }
}

.js-cases-slider:not(.slick-initialized) {
  opacity: 0;
  visibility: hidden;
}
.js-cases-slider.slick-initialized {
  opacity: 1;
  visibility: visible;
  transition: opacity .15s ease;
}

.p-maintenance-cases:not(:has(.js-cases-slider.slick-initialized)) .c-cases-slider__nav{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.p-maintenance-cases:has(.js-cases-slider.slick-initialized) .c-cases-slider__nav{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .15s ease;
}

/* Card thumb 16:9 */
.c-thumb-16x9{
  aspect-ratio: 16/9;
  background-color: #686868;
  overflow: hidden;
  position: relative;
}
.c-thumb-16x9 img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.c-thumb__play{
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff;
  padding: 8px 10px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
  transform: translate(-50%, -50%);
}

/* Modal video 16:9 */
.c-modal__video{
  aspect-ratio: 16/9;
  background: #000;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.c-modal__video iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}


/* =================================
   MODAL
   ================================= */
.c-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483600;
  display: none;
}

.c-modal__wrapper {
  position: relative;
  display: flex;
  border-radius: 4px;
  z-index: 10;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.c-modal.is-open {
  display: block;
}
.c-modal.is-open .c-modal__wrapper {
  background-color: rgba(0, 0, 0, .72);
}

body.modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
  top: var(--scroll-lock-top, 0);
  left: 0;
  right: 0;
}

@media screen and (max-width: 992px) {
  .c-modal__inner {
    padding-bottom: 15%;
    padding-top: 5%;
  }
}

.c-modal__overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-backdrop);
  -webkit-backdrop-filter: saturate(120%) blur(1.2px);
  backdrop-filter: saturate(120%) blur(1.2px);
  pointer-events: auto;
  z-index: 1;
}

.c-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0d2f6d;
  cursor: pointer;
}

.c-modal__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 70vh;
}

.c-modal__content {
  padding: 20px 22px;
  max-height: 70vh;
  overflow: auto;
}

.c-modal__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #0d2f6d;
}

.c-modal__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  color: #444;
}

.c-modal__meta li + li {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .c-modal__dialog {
    grid-template-columns: 1fr;
  }
  .c-modal__media img {
    max-height: 40vh;
  }
}

/* =================================
   MODAL (photo style)
   ================================= */
.c-modal--photo .c-modal__overlay {
  background: rgba(0,0,0,.72);
}

.c-modal--photo .c-modal__dialog {
  width: min(900px, 92vw);
  background: transparent;
  border-radius: 8px;
  overflow: visible;
  box-shadow: none;
  max-width: none;
  min-width: auto;
  z-index: 10;
  margin: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.c-modal__inner {
  align-items: flex-start;
}

.c-modal__head {
  padding-top: 25px;
}

.c-modal--photo .c-modal__close {
  position: absolute;
  top: 10px;
  right: -8px;
  width: 54px;
  height: 54px;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

.c-modal--photo .c-modal__titleBar {
  left: 0;
  right: 0;
  top: -56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
}

.c-modal--photo .c-modal__heading {
  margin: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: .02em;
  text-shadow: 0 8px 28px rgba(0,0,0,.55);
  pointer-events: auto;
  font-size: 24px;
}

.c-modal--photo .c-modal__media {
  overflow: hidden;
}

.c-modal--photo .c-modal__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 66vh;
  object-fit: cover;
}

.c-modal--photo .c-modal__info {
  left: 0;
  right: 0;
  bottom: -96px;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 55px;
  background: rgba(255,255,255,.92);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  height: auto;
}

.c-modal--photo .c-modal__info::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 190px;
  background-image: radial-gradient(#8fb3ff 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: .65;
  pointer-events: none;
  border-bottom-right-radius: 8px;
}

.c-modal--photo .c-modal__meta {
  color: #1b1b1b;
  font-size: 15px;
  line-height: 1.8;
}

#case-modal-media{
  overflow: hidden;
  position: relative;
}
#case-modal-media .c-modal__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
}


@media (max-width: 980px) {
  .c-modal--photo .c-modal__info {
    bottom: -88px;
  }
}

@media (max-width: 767px) {
  .c-modal__head {
    padding-top: 0;
    position: relative;
  }
  .c-modal--photo .c-modal__dialog {
    width: 90%;
  }
  .c-modal--photo .c-modal__titleBar {
    margin-top: 0;
    padding: 16px 50px 16px 0;
  }
  .c-modal--photo .c-modal__media img {
    max-height: 48vh;
  }
  .c-modal--photo .c-modal__info {
    padding: 16px 20px;
  }
  .c-modal--photo .c-modal__info::after {
    display: none;
  }
  .c-modal--photo .c-modal__close {
    position: absolute;
    right: 0;
  }
  .c-modal--photo .c-modal__heading {
    font-size: 16px;
  }
  .c-modal--photo .c-modal__close {
    top: 0;
  }
}

.p-section__maintenance {
  margin-block: 30px 60px;
}