
.lessons-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.lesson {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer; /* Change cursor to pointer */
}

.lesson img {
    width: 100%;
    display: block;
}

.lesson .text {
    padding: 15px;
}

.lesson .title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.lesson .subtitle {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.lesson:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sub-con-container{
    margin-bottom:30px;
}

/* 상단 */

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.book-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sample-page-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 150%; /* 2:3 aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.sample-page-img, .modal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.magnifier {
display: flex;
    justify-content: center;
    align-items: center;


    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}


.magnifier-wrapper {
    width: 45px;
    height:45px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5); /* 반투명 배경색 */
    border-radius: 50%; /* 원형 배경 */
    padding: 10px; /* 아이콘 주위에 여백 */
}

.magnifier {

}

.magnifier span {
    font-size: 24px;
    color: white; /* 아이콘 색상 */
}


.modal-dialog {
    width:500px;
}

.modal-body {
    text-align: center;
    position: relative;
    padding: 0; /* Remove default padding */
}

.modal-image-container {
    width: 80%; /* Control the width of the image container */
    margin: auto;
    aspect-ratio: 2 / 3; /* Maintains 2:3 aspect ratio */
    background: #000; /* Optional: Black background to highlight image */
    position: relative;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.sample-page-placeholder {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 150%; /* 2:3 aspect ratio */


    align-items: center;
    justify-content: center;
}

.placeholder-img {
    width: 100px;
    height: auto;
}

.overlay-text {
    height: 140px;

    color: white;
    font-size: 12px;
    text-align: center;
    background: #6c757d;
    padding: 10px;
    border-radius: 5px;
}


.book_sample_title {
    color:white;
    font-size:20px;
    text-align:center;
    margin-bottom:10px;
}

.sub_con_title{
    color:white;
    font-size:33px;
    font-weight:900;
    text-align:center;
    margin-bottom:10px;
}

