
/* -----------------------------------------
   Oak Lores Blog
----------------------------------------- */

.oaklores-blog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 30px 90px;
}


/* Header */

.oaklores-blog-header {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.oaklores-blog-header h1 {
    margin: 0 0 12px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 500;
    line-height: 1;
    color: #2b211d;
}

.oaklores-blog-header p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #6b5c54;
}


/* Grid */

.oaklores-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* Card */

.oaklores-blog-card {
    position: relative;
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 3px;
    background: #2b211d;
}


/* Entire card is clickable */

.oaklores-blog-card-link {
    position: absolute;
    inset: 0;
    display: block;
    color: inherit;
    text-decoration: none;
}


/* Image */

.oaklores-blog-card-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;

    transition: transform 0.5s ease;
}


/* Dark overlay */

.oaklores-blog-card-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.52);
}


/* Title */

.oaklores-blog-card-content {
    position: absolute;
    inset: auto 0 0;

    padding: 28px;
}

.oaklores-blog-card-content h2 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 500;
    line-height: 1.15;

    color: #fff;
}


/* Hover */

.oaklores-blog-card-link:hover .oaklores-blog-card-image {
    transform: scale(1.04);
}

.oaklores-blog-card-link:focus-visible {
    outline: 3px solid #b9653c;
    outline-offset: 4px;
}


/* Pagination */

.oaklores-blog-pagination {
    margin-top: 55px;
    text-align: center;
}

.oaklores-blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.oaklores-blog-pagination a,
.oaklores-blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;

    border: 1px solid rgba(43, 33, 29, 0.15);
    border-radius: 2px;

    color: #2b211d;
    text-decoration: none;
}

.oaklores-blog-pagination .current {
    background: #2b211d;
    color: #fff;
    border-color: #2b211d;
}

.oaklores-blog-pagination a:hover {
    background: rgba(185, 101, 60, 0.08);
}


/* Empty state */

.oaklores-blog-empty {
    text-align: center;
    padding: 80px 20px;
}


/* Tablet */

@media (max-width: 900px) {

    .oaklores-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* Mobile */

@media (max-width: 600px) {

    .oaklores-blog {
        padding: 50px 18px 70px;
    }

    .oaklores-blog-header {
        margin-bottom: 35px;
    }

    .oaklores-blog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .oaklores-blog-card {
        aspect-ratio: 16 / 10;
    }

    .oaklores-blog-card-content {
        padding: 22px;
    }

}

