test 3-4 9

<style> .spread { display: flex; width: 840px; height: 595px; margin: 40px auto; background-color: white; border: 1px solid #ccc; box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); position: relative; z-index: 1; flex-wrap: wrap; } .page { width: 50%; height: 100%; position: relative; overflow: hidden; box-sizing: border-box; border-right: 1px solid #eee; } .page:last-child { border-right: none; } .photo-square, .photo-rect, .photo-tall-half, .photo-tall-cont { overflow: hidden; position: absolute; object-fit: cover; } .photo-square { width: 297.5px; aspect-ratio: 1 / 1; left: 0; bottom: 0; } .photo-rect { width: 297.5px; aspect-ratio: 16 / 9; left: 0; bottom: calc(297.5px + 7.56px); /* 2mm = ~7.56px */ } .photo-tall-half { left: 297.5px; bottom: 0; width: calc(420px - 297.5px); height: calc(297.5px + 7.56px + (297.5px / (16 / 9))); z-index: 1; } .photo-tall-cont { left: 0; top: 0; width: 100%; height: 100%; z-index: 0; } .photo-square img, .photo-rect img, .photo-tall-half img, .photo-tall-cont img, .photo-wide img { width: 100%; height: 100%; object-fit: cover; display: block; } .photo-wide { position: absolute; left: 0; top: 0; width: 100%; height: 595px; overflow: hidden; z-index: 0; } .text-box { position: absolute; top: 20px; left: 10%; width: 80%; background: rgba(255, 255, 255, 0.9); padding: 16px; box-shadow: 0 0 6px rgba(0,0,0,0.1); font-size: 13px; line-height: 1.4; z-index: 2; } .text-box h3 { font-size: 16px; margin: 0 0 8px; } .text-box p { margin: 0 0 6px; } @media (max-width: 767px) { .spread { flex-direction: column; width: 100%; height: auto; border: none; } .page { width: 100%; height: auto; border: none; border-bottom: 1px solid #ddd; padding-bottom: 40px; } .photo-square, .photo-rect, .photo-tall-half, .photo-tall-cont { position: relative; margin: 20px auto 10px; } .photo-wide { position: relative; width: 100%; left: 0; height: auto; aspect-ratio: 16 / 9; } .text-box { position: relative; top: 0; left: 0; width: 90%; margin: 20px auto; } } </style> <div class="spread"> <!-- Page 3 --> <div class="page page-left"> <a href="/files/attach/images/2025/04/30/9eacc12e05e7a13cae22c45d941614d2.jpg" data-lightbox="album" data-title="Top Left (16:9)"> <div class="photo-rect"> <img src="/files/attach/images/2025/04/30/9eacc12e05e7a13cae22c45d941614d2.jpg" alt="Top Rect"> </div> </a> <a href="/files/attach/images/2025/04/30/aed9d0c3fbcc3bd8a5a1e2070ce3fcaf.jpg" data-lightbox="album" data-title="Bottom Left"> <div class="photo-square"> <img src="/files/attach/images/2025/04/30/aed9d0c3fbcc3bd8a5a1e2070ce3fcaf.jpg" alt="Bottom Square"> </div> </a> <a href="/files/attach/images/2025/04/30/07d53c7f66823a13c8c27ecc3816d0b6.jpg" data-lightbox="album" data-title="Vertical Span"> <div class="photo-tall-half"> <img src="/files/attach/images/2025/04/30/07d53c7f66823a13c8c27ecc3816d0b6.jpg" alt="Vertical Image"> </div> </a> </div> <!-- Page 4 --> <div class="page page-right"> <a href="/files/attach/images/2025/04/30/07d53c7f66823a13c8c27ecc3816d0b6.jpg" data-lightbox="album" data-title="Vertical Continued"> <div class="photo-tall-cont"> <img src="/files/attach/images/2025/04/30/07d53c7f66823a13c8c27ecc3816d0b6.jpg" alt="Vertical Continued"> </div> </a> <div class="text-box"> <h3>Desert Echoes</h3> <p>사막의 아침 공기가 아직 따스함을 품기 전</p> <p>고요한 장면을 담은 한 컷</p> <p>#빛 #바람 #침묵</p> </div> </div> </div> <script src="https://cdn.jsdelivr.net/npm/lightbox2@2.11.4/dist/js/lightbox.min.js"></script> <link href="https://cdn.jsdelivr.net/npm/lightbox2@2.11.4/dist/css/lightbox.min.css" rel="stylesheet" />
by eGrida posted May 11, 2025
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄
Extra Form
Vertical Continued

Desert Echoes

사막의 아침 공기가 아직 따스함을 품기 전

고요한 장면을 담은 한 컷

#빛 #바람 #침묵


Articles