/* iGay69 Category List v1.2.6 */

.igay69-category-list,
.igay69-category-list * { box-sizing: border-box; }

.igay69-category-list {
    width: 100%;
    margin: 0;
    padding: 0;
}

.igay69-list-letter-group { margin: 0 0 30px; }

.igay69-list-letter-heading {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 0 14px;
    color: #111;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.igay69-list-letter-label {
    flex: 0 0 auto;
    order: 1;
    padding-right: 8px;
    color: #111;
    font-size: 1em;
    font-weight: 700;
}

.igay69-list-letter-count {
    flex: 0 0 auto;
    order: 3;
    padding-left: 8px;
    padding-right: 0;
    color: #999 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1;
    white-space: nowrap;
}

.igay69-list-letter-heading::after {
    content: "";
    display: block;
    flex: 1 1 auto;
    order: 2;
    height: 1px;
    background: #ddd;
}

.igay69-list-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px 14px;
    width: 100%;
}

.igay69-list-card {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.igay69-list-card-link {
    display: block;
    color: inherit;
    text-decoration: none !important;
}

/* v1.1.1: preserve the original featured-image ratio.
   No fixed aspect ratio, no fixed height and no object-fit crop. */
.igay69-list-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #f7f7f7;
    border: 1px solid #d6d6d6;
    line-height: 0;
}

.igay69-list-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .2s ease, opacity .2s ease;
}

.igay69-list-card-link:hover .igay69-list-thumb img {
    transform: scale(1.02);
    opacity: .93;
}

.igay69-list-name {
    margin: 7px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #111;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
    overflow-wrap: anywhere;
}

.igay69-list-card-link:hover .igay69-list-name { color: #f00; }

.igay69-list-no-image {
    display: flex;
    width: 100%;
    min-height: 180px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 1024px) {
    .igay69-list-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .igay69-list-name {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .igay69-list-letter-group { margin-bottom: 25px; }

    .igay69-list-letter-heading {
        margin-bottom: 12px;
        font-size: 17px;
    }

    .igay69-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px 10px;
    }

    .igay69-list-name {
        margin-top: 6px !important;
        font-size: 12px;
    }
}


/* Post count beside category title */
.igay69-list-count {
    margin-left: 1px;
    color: #999;
    font-size: .9em;
    font-weight: 400;
    white-space: nowrap;
}


.igay69-list-name-text,
.igay69-list-count {
    display: inline;
}


/* Force category titles to lowercase even if the theme applies uppercase. */
.igay69-category-list .igay69-list-name,
.igay69-category-list .igay69-list-name-text {
    text-transform: lowercase !important;
}

/* Keep A-Z group headings uppercase. */
.igay69-category-list .igay69-list-letter-heading,
.igay69-category-list .igay69-list-letter-heading span {
    text-transform: uppercase !important;
}


/* Force A-Z heading count to stay small and grey even if the theme styles headings strongly. */
.igay69-category-list .igay69-list-letter-heading .igay69-list-letter-count {
    color: #999 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}
