test 3-4 13
<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 {
left: 0;
bottom: 0;
width: 100%;
height: calc(267.75px + 7.56px + (267.75px / (16 / 9)));
z-index: 0;
position: absolute;
background-position: top;
background-repeat: no-repeat;
background-size: cover;
}
.photo-square {
width: 267.75px;
aspect-ratio: 1 / 1;
left: 0;
bottom: 0;
}
.photo-rect {
width: 267.75px;
aspect-ratio: 16 / 9;
left: 0;
bottom: calc(267.75px + 7.56px);
}
.photo-tall-half {
left: calc(267.75px + 7.56px);
bottom: 0;
width: calc(420px - 267.75px - 7.56px);
height: calc(267.75px + 7.56px + (267.75px / (16 / 9)));
z-index: 1;
}
.photo-tall-cont {
left: 0;
bottom: 0;
width: 100%;
height: calc(267.75px + 7.56px + (267.75px / (16 / 9)));
z-index: 0;
position: absolute;
}
.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;
}
.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;
}
</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/71b37f3dfe6d58dd3a3f92c7b0f5f778.jpg" data-lightbox="album" data-title="Vertical Continued">
<div class="photo-tall-cont" style="background-image: url('$1');">
<img src="$1" alt="Vertical Continued" style="visibility: hidden;">
</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