/*
 * Content (sayfa) and category (kategori) pages only, scoped by .icerik-sayfasi so the home page is untouched:
 * every image gets the same size and a rounded, shadowed frame.
 */

/* Gallery under a content page: equal 4:3 tiles, cropped to fill */
.icerik-sayfasi .about-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: #f3efe8;
    box-shadow: 0 12px 30px rgba(31, 27, 22, 0.14);
}

.icerik-sayfasi .about-thumb::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    pointer-events: none;
}

/* The theme shifts .about-thumb images with a negative margin; pin them to the frame instead */
.icerik-sayfasi .about-thumb img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.icerik-sayfasi .about-thumb:hover img {
    transform: scale(1.04);
}

/* Images placed inside the content text: framed, never wider than the column */
.icerik-sayfasi .section-head img {
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(31, 27, 22, 0.12);
}

/* Category listing: cards of equal height with equal 4:3 images */
.icerik-sayfasi .dlab-blog-grid-2 .blog-post {
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 27, 22, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.icerik-sayfasi .dlab-blog-grid-2 .blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(31, 27, 22, 0.16);
}

.icerik-sayfasi .dlab-blog-grid-2 .dlab-post-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0;
}

.icerik-sayfasi .dlab-blog-grid-2 .dlab-post-media a {
    display: block;
    height: 100%;
}

.icerik-sayfasi .dlab-blog-grid-2 .dlab-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icerik-sayfasi .dlab-blog-grid-2 .dlab-info {
    padding: 20px 24px 24px;
}

/* Fixed number of lines keeps every card the same height */
.icerik-sayfasi .dlab-blog-grid-2 .post-title {
    display: -webkit-box;
    min-height: 2.6em;
    overflow: hidden;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.icerik-sayfasi .dlab-blog-grid-2 .dlab-post-text p {
    display: -webkit-box;
    min-height: 4.8em;
    margin-bottom: 0;
    overflow: hidden;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
