@charset "utf-8";

/******************************************
    단지설계/단지조경
******************************************/

.masterplan_gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 디자인 프레임 안에서의 이미지 위치/크기를 퍼센트로 재현 */
.masterplan_gallery__item {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ratio);
  margin: 0;
  overflow: hidden;
  background: var(--neutral-400);
}

.page_content .page_container .masterplan_gallery__item img {
  position: absolute;
  left: var(--img-x);
  top: var(--img-y);
  width: var(--img-w);
  height: var(--img-h);
  max-width: none;
  object-fit: cover;
}

.masterplan_gallery__label {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 286px;
  max-width: 100%;
  height: 32.5px;
  padding-right: 31px;
  color: var(--white);
  background: linear-gradient(to right, rgba(0, 0, 0, 0), #000);
  font-size: 16px;
  font-weight: 500;
  line-height: 32.5px;
  text-align: right;
  white-space: nowrap;
}

@media screen and (max-width: 1024px) {
  .masterplan_gallery {
    gap: calc(4 / var(--width) * var(--device-width));
  }

  .masterplan_gallery__label {
    width: 70%;
    max-width: max(120px, calc(140 / var(--width) * var(--device-width)));
    height: auto;
    padding: calc(6 / var(--width) * var(--device-width)) calc(8 / var(--width) * var(--device-width)) calc(5 / var(--width) * var(--device-width));
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, .8) 45%);
    font-size: max(10px, calc(10 / var(--width) * var(--device-width)));
    line-height: 1.2;
    text-shadow: 0 0 4px rgba(0, 0, 0, .6);
  }
}
