.gallery {
    column-count: 2;
    column-gap: 15px;
    }

.gallery a {
    display: inline-block;
      width: 100%;
      margin-bottom: 15px;
      border: 1px solid #ddd;
      padding: 0;
      border-radius: 10px;
      background: white;
      overflow: hidden;
}

.gallery img {
    width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: filter 0.3s ease;
}

    @media (max-width: 768px) {
     
      .gallery {
        column-count: 2;
        column-gap: 8px;
      }
      .gallery a {
        margin-bottom: 8px;
      }
    }


/* Lightbox 스타일 */
.lightbox {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.lightbox img {
    width: 100%;
    height: 100%; /* 이미지 높이를 부모에 맞춤 */
    object-fit: cover; /* 이미지 비율을 유지하며 부모 요소에 맞춤 */
    border-radius: 8px;
}

/* Lightbox 오버레이 */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Lightbox 콘텐츠 */
.lightbox-content {
    position: relative;
    max-width: 90vh;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 이미지 비율을 유지하며 크기 조절 */
.lightbox-content img {
    max-width: 85vh;
    max-height: 80vh;
    object-fit: scale-down;
}

/* Lightbox 캡션 */
.lightbox-caption {
    text-align: center;
    color: white;
    font-size: 1.2em;
    margin-top: 10px;
}

.category-btns {
      text-align: center;
      margin: 20px 0;
    }
    .category-btns button {
      margin: 5px;
      padding: 10px;
      color: var(--text);
      cursor: pointer;
    }

    .category-btns button.active {
      font-weight: bold;
      border-bottom: 2px solid var(--accent2);
      color: var(--accent2);
    }
    .hidden {
      display: none !important;
    }

 .tag-btn button {
      margin: 5px;
      padding: 10px;
      color: var(--text);
      cursor: pointer;
    }

    .tag-btn button.active {
      font-weight: bold;
      border-bottom: 2px solid var(--accent2);
      color: var(--accent2);
    }