.wg-photo {
  width: 100%;
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
}

/* 제목 */
.wg-photo .title {
  padding: 0 0 14px;
  color: #111;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.wg-photo .title a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.wg-photo .title a .far,
.wg-photo .title a .fas {
  color: #777;
  font-size: 18px;
}

/* 리스트 영역 */
.wg-photo .articles {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.wg-photo .articles ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
	margin-top: 25px;
}

.wg-photo .articles ul li {
  position: relative;
  width: auto;
  float: none;
  margin: 0;
  overflow: hidden;
  background: #000;
}

/* 링크 영역 */
.wg-photo .articles ul li a {
  display: block;
  position: relative;
  width: 100%;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

/* 썸네일 이미지 */
.wg-photo .photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: scale(1);
  transition: transform 0.45s ease, opacity 0.35s ease;
}

/* 썸네일 어둡게 */
.wg-photo .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.35s ease;
}

/* 이미지 위 제목 */
.wg-photo .articles .subject {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  margin: 0;
  padding: 36px 16px 14px;
  box-sizing: border-box;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78),
    rgba(0, 0, 0, 0)
  );
  transition: padding-bottom 0.35s ease;
  pointer-events: none;
}

/* 중앙 기차 아이콘 - 심플한 컬러 SVG / 배경 없음 */
/*.wg-photo .articles ul li::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 50px;
  height: 50px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='15' y='11' width='34' height='31' rx='8' fill='%233b82f6'/%3E%3Crect x='20' y='17' width='9' height='8' rx='2' fill='%23ffffff'/%3E%3Crect x='35' y='17' width='9' height='8' rx='2' fill='%23ffffff'/%3E%3Crect x='22' y='30' width='20' height='4' rx='2' fill='%23ffd84d'/%3E%3Ccircle cx='24' cy='45' r='4' fill='%23222222'/%3E%3Ccircle cx='40' cy='45' r='4' fill='%23222222'/%3E%3Cpath d='M20 52h24' stroke='%23222222' stroke-width='3.5' stroke-linecap='round'/%3E%3Cpath d='M24 54l5-7M40 54l-5-7' stroke='%23222222' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M25 11h14' stroke='%23ffffff' stroke-opacity='.55' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    filter 0.3s ease;

  pointer-events: none;
}*/

/* 호버 효과 */
.wg-photo .articles ul li:hover .photo {
  transform: scale(1.07);
  opacity: 0.96;
}

.wg-photo .articles ul li:hover .photo::after {
  background: rgba(0, 0, 0, 0.18);
}

.wg-photo .articles ul li:hover .subject {
  padding-bottom: 20px;
}

/*.wg-photo .articles ul li:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));*/
}

/* 반응형 */
@media only screen and (max-width: 750px) {
  .wg-photo .articles ul {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .wg-photo .articles .subject {
    padding: 30px 12px 11px;
    font-size: 13px;
  }

  .wg-photo .articles ul li::before {
    width: 44px;
    height: 44px;
  }
}

@media only screen and (max-width: 500px) {
  .wg-photo .articles ul {
    grid-template-columns: repeat(2, 1fr);
  }
}