test 1-2 13
<style>
.spread {
display: flex;
width: 840px;
height: 595px;
margin: 0 auto;
background-image: url('/files/attach/images/2025/04/30/ea837362da02d633b8b0168375e79183.jpg');
background-size: cover;
background-position: center;
border: 1px solid #ccc;
box-shadow: 0 0 8px rgba(0,0,0,0.2);
position: relative;
z-index: 1;
}
.page {
width: 50%;
height: 100%;
position: relative;
overflow: hidden;
}
.photo-slot {
width: 297.5px;
aspect-ratio: 1 / 1;
overflow: hidden;
position: absolute;
left: 0;
}
.photo-slot img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.photo-slot.top {
top: 0;
}
.photo-slot.bottom {
top: 297.5px;
}
.photo-right {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-40%, -50%);
width: 70%;
aspect-ratio: 1 / 1;
overflow: hidden;
box-shadow: 0 0 4px rgba(0,0,0,0.2);
}
.photo-right img {
width: 100%;
height: 100%;
object-fit: cover;
}
@media (max-width: 767px) {
.spread {
flex-direction: column;
width: 100%;
height: auto;
background: none;
}
.page {
width: 100%;
height: 595px;
background-size: cover;
background-repeat: no-repeat;
}
.page-left {
background-image: url('/files/attach/images/2025/04/30/ea837362da02d633b8b0168375e79183.jpg');
background-position: left center;
}
.page-right {
background-image: url('/files/attach/images/2025/04/30/ea837362da02d633b8b0168375e79183.jpg');
background-position: right center;
}
.photo-slot {
left: 10%;
}
.photo-right {
left: 50%;
transform: translate(-50%, -50%);
}
}
</style>
<div class="spread">
<!-- Page 1 (Left) -->
<div class="page page-left">
<a href="/files/attach/images/2025/04/30/0493a3f881d83c0263211d06af551990.jpg" data-lightbox="album" data-title="Top Left">
<div class="photo-slot top">
<img src="/files/attach/images/2025/04/30/0493a3f881d83c0263211d06af551990.jpg" alt="Top Left">
</div>
</a>
<a href="/files/attach/images/2025/04/30/aed9d0c3fbcc3bd8a5a1e2070ce3fcaf.jpg" data-lightbox="album" data-title="Bottom Left">
<div class="photo-slot bottom">
<img src="/files/attach/images/2025/04/30/aed9d0c3fbcc3bd8a5a1e2070ce3fcaf.jpg" alt="Bottom Left">
</div>
</a>
</div>
<!-- Page 2 (Right) -->
<div class="page page-right">
<a href="/files/attach/images/2025/04/30/ea837362da02d633b8b0168375e79183.jpg" data-lightbox="album" data-title="Right Highlight">
<div class="photo-right">
<img src="/files/attach/images/2025/04/30/ea837362da02d633b8b0168375e79183.jpg" alt="Right Highlight">
</div>
</a>
</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