/* 사진 및 영상기록 목록/조회. CMS 제목과 배경은 중복 출력하지 않는다. */
.apecweb.field-gallery { color: #e2e8f2; background: transparent; }
.field-gallery a { color: inherit; text-decoration: none; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 40px; font-size: 12px; }
.gallery-toolbar form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.apecweb.field-gallery .gallery-toolbar input, .apecweb.field-gallery .gallery-toolbar select { width: auto; max-width: 180px; background: transparent; color: #e2e8f2; border: 0; border-bottom: 1px solid #8290a4; color-scheme: dark; }
.apecweb.field-gallery select option { background: #061329; color: #fff; }
.apecweb.field-gallery button { background: #020b17; color: #fff; border: 0; }
.apecweb.field-gallery .gallery { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px 28px; }
.apecweb.field-gallery .card { padding: 0; border: 0; text-align: center; }
.apecweb.field-gallery .card img { display: block; width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; }
.gallery-label { margin: 12px 0 2px; font-size: 11px; }
.field-gallery .card h2 { margin: 0; font-size: 17px; font-weight: normal; overflow-wrap: anywhere; }
.gallery-placeholder { display: grid; place-items: center; aspect-ratio: 1.5; background: #10243b; }
.gallery-pagination { display: flex; justify-content: center; gap: 18px; margin-top: 48px; flex-wrap: wrap; }
.gallery-pagination a { padding: 5rem 8rem;}
.gallery-pagination [aria-current] { border-bottom: 1px solid #fff; padding: 5rem 8rem; }
.gallery-detail header { border-top: 1px solid #8290a4; border-bottom: 1px solid #1E2B42; padding: 26rem 0; }
.gallery-detail h2 { font-size: 26rem; font-weight: normal; margin: 0; }
.gallery-date { font-size: 16rem; color: #8896B1; margin-top: 6rem;}
.gallery-attachments { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; padding: 23rem 0; }
.apecweb.field-gallery .image-strip { flex-wrap: wrap; overflow: visible; }
.apecweb.field-gallery .image-choice { padding: 0; border: 1px solid transparent; background: transparent; flex: 0 0 110px; height: 67px; margin: 0; }
.apecweb.field-gallery .image-choice img { display: block; width: 90px; height: 65px; margin: 0 auto; object-fit: cover; }
.apecweb.field-gallery .image-strip { align-items: flex-start; align-content: flex-start; }
.apecweb.field-gallery .image-choice[aria-pressed=true] { border-color: #a5cce8; }
.gallery-detail .image-view { margin: 24px auto; max-width: 900px; }
.gallery-detail .image-view img { width: auto; }
.apecweb.field-gallery .video-choice { position: relative; background: #10243b; }
.apecweb.field-gallery .video-choice img[hidden] { display: none; }
.video-choice .media-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid white; background: rgba(0,0,0,.6); font-size: 13px; }
.video-choice .media-kind { position: absolute; right: 4px; bottom: 2px; padding: 1px 3px; background: rgba(0,0,0,.7); font-size: 10px; }
.apecweb.field-gallery .image-view video { display: block; width: 100%; max-height: 70vh; background: #000; }
.apecweb.field-gallery .image-view [hidden] { display: none !important; }
.apecweb.field-gallery .gallery-detail .image-view > p { margin: 20px 0 0; line-height: 1.6; }
.gallery-detail .body { margin: 60px 0 0 0; }
.gallery-back { text-align: center; padding: 35px 0; border-top: 1px solid #25334a; }
.gallery-back a { display: inline-block; padding: 10px 30px; background: #020b17; }
.gallery-neighbors a { display: block; padding: 18px 0; border-top: 1px solid #25334a; font-size: 13px; }
.gallery-neighbors span { margin-left: 24px; }
.field-gallery a:focus-visible, .field-gallery button:focus-visible { outline: 2px solid #a5cce8; outline-offset: 3px; }
@media(max-width:900px) { .gallery-toolbar { flex-direction: column; align-items: flex-start; } }
@media(max-width:700px) { .apecweb.field-gallery .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 14px; } }

@media(max-width:500px) { 
    .gallery-detail h2 { font-size: 22rem; font-weight: normal; margin: 0; }
}