@charset "utf-8";

body {
  background: #f8f8f8;
}

.tab {
  margin: 8rem 0 10rem;
}
.tab ul {
  display: flex;
  justify-content: center;
}
.tab li {
  position: relative;
  padding: 0 2rem;
}
.tab li + li::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 2rem;
  margin-top: -1rem;
  background: #a7a7a7;
  content: "";
}
.tab a {
  display: block;
  position: relative;
  font-size: 2rem;
  line-height: 4.8rem;
  transition: all 0.4s;
}
.tab a::before {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: 0.4rem solid #00babb;
  content: "";
  opacity: 0;
  transition: all 0.4s;
}
.tab li.on a::before {
  opacity: 1;
}
.tab li a:hover {
  color: #00babb;
}
.tab li.on a {
  font-weight: 600;
  color: #00babb;
}

.grid {
  margin: -1.4rem;
}
.grid-item {
  width: 25%;
}
.grid-item .img {
  padding: 1.4rem;
  position: relative;
}
.grid-item .img > div {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #000;
  transition: box-shadow 0.4s;
}
.grid-item .img img {width:100%;}
/*
.grid-item .img > div::before {
  display: block;
  padding-bottom: 153.846%;
  content: "";
}
.grid-item .img img {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 110%;
  height: 110%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  transition: opacity 0.4s;
}
*/
.grid-item span {
  position: absolute;
  right: 3rem;
  bottom: 2.5rem;
  font-size: 1.6rem;
  color: #fff;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.4s;
}
/*
.grid-item:nth-child(11n + 1) .img > div::before,
.grid-item:nth-child(11n + 3) .img > div::before,
.grid-item:nth-child(11n + 7) .img > div::before,
.grid-item:nth-child(11n + 10) .img > div::before {
  padding-bottom: 100%;
}
.grid-item:nth-child(11n + 6) .img > div::before {
  padding-bottom: 139.13%;
}
*/
.grid-item .img:hover > div {
  box-shadow: 1rem 1rem 2rem 0 rgba(0, 0, 0, 0.25);
}
.grid-item .img:hover img {
  opacity: 0.6;
}
.grid-item .img:hover span {
  opacity: 1;
}
.bottom {
  margin-top: 10rem;
  text-align: center;
}
.bottom a {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  font-size: 1.6rem;
  line-height: 5rem;
}
.bottom a i {
  position: relative;
  width: 5rem;
  height: 5rem;
  border-radius: 100%;
  background: #eeeeee;
  transition: all 0.4s;
}
.bottom a i::after {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/main/section8_arr.svg?v=1") no-repeat
    center/contain;
  content: "";
  transition: all 0.4s;
  transition: all 0.4s;
}
.bottom a:hover i {
  background: #00babb;
}
.bottom a:hover i::after {
  filter: brightness(0) invert(1);
}
@media screen and (max-width: 1024px) {
   {
    padding: 10rem 0;
  }
  .tab ul {
    display: inline-flex;
    flex-wrap: wrap;
    min-width: 100%;
    white-space: nowrap;
    padding-bottom: 2rem;
  }
  .grid {
    margin: -1rem;
  }
  .grid-item {
    width: 50%;
  }
  .grid-item:nth-child(11n + 3) .img > div::before {
    padding-bottom: 139.13%;
  }
  .grid-item .img {
    padding: 1rem;
  }
}

/* 드롭존 스크롤 처리 */
.dropzone {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  border: 2px dashed #00babb;
  background: #fafafa;
  border-radius: 8px;
  transition: all 0.3s;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}

.dropzone:hover {
  border-color: #009899;
  background: #f5f5f5;
}

/* 드롭존 메시지 스타일 */
.dropzone .dz-message {
  text-align: center;
  padding: 20px;
  margin: 0;
  pointer-events: none;
}

.dropzone .dz-message .ftxt1 {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.dropzone .dz-message .fbtn {
  display: inline-block;
  padding: 10px 20px;
  background: #00babb;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  margin: 10px 0;
  transition: background 0.3s;
  pointer-events: auto;
}

.dropzone .dz-message .fbtn:hover {
  background: #009899;
}

.dropzone .dz-message .ftxt2 {
  font-size: 13px;
  color: #999;
  margin-top: 10px;
}

/* 업로드된 이미지들이 가로로 5개씩 배치되도록 */
.dropzone .dz-preview {
  vertical-align: top;
  width: calc(20% - 12px);
  margin: 6px;
  padding: 10px;
  background: #fff;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.dropzone .dz-preview .dz-image {
  border-radius: 5px;
  overflow: hidden;
  width: 100%;
}

.dropzone .dz-preview .dz-image img {
  width: 100%;
  height: auto;
  display: block;
}

.dropzone .dz-preview .dz-details {
  padding: 5px 0;
  font-size: 11px;
  text-align: center;
}

.dropzone .dz-preview .dz-filename {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone .dz-preview .dz-size {
  font-size: 10px;
  color: #999;
}

.dropzone .dz-preview .dz-remove {
  font-size: 12px;
  color: #ff4444;
  text-decoration: none;
  display: block;
  text-align: center;
  margin-top: 5px;
}

.dropzone .dz-preview .dz-remove:hover {
  text-decoration: underline;
}

/* 반응형: 화면이 작을 때는 3개씩 */
@media screen and (max-width: 768px) {
  .dropzone .dz-preview {
    width: calc(33.33% - 12px);
  }
}

/* 스크롤바 커스터마이징 */
.dropzone::-webkit-scrollbar {
  width: 8px;
}

.dropzone::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.dropzone::-webkit-scrollbar-thumb {
  background: #00babb;
  border-radius: 10px;
}

.dropzone::-webkit-scrollbar-thumb:hover {
  background: #009899;
}



@media screen and (max-width:1024px){	
	.tab {
	  margin: 0 0 3rem;
	}
}