/* =========================================
   CATEGORIES / DESTINATIONS GRID
========================================= */

.home-categories {
    width: 100%;
    clear: both;
    height: auto;
}

.categories-grid {
    width: 100%;
    clear: both;
    height: auto;
}

.destination-tabs {
    width: 100%;
    margin: 40px 0;
}

.mkdf-blog-list-with-destinations-holder {
    position: relative;
    width: 100%;
}

.categories-grid::after {
    content: "";
    display: block;
    clear: both;
}


/* =========================================
   GRID ITEMS
========================================= */

.mkdf-blwd-item {
    float: left;
    padding: 10px;
    box-sizing: border-box;
}


/* =========================================
   CARD SIZE
========================================= */

.categories-grid .mkdf-blwd-item.card-small {
    width: 25%;
    height: 440px;
}

.categories-grid .mkdf-blwd-item.card-medium {
    width: 50%;
    height: 440px;
}

.categories-grid .mkdf-blwd-item.card-large {
    width: 75%;
    height: 440px;
}


/* =========================================
   TILE
========================================= */

.mkdf-blwd-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}


/* =========================================
   IMAGE
========================================= */

.mkdf-blwd-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.mkdf-blwd-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.mkdf-blwd-item:hover .mkdf-blwd-image {
    transform: scale(1.06);
}


/* =========================================
   TEXT HOLDER
   NO BACKGROUND
========================================= */

.mkdf-blwd-text-holder {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}


/* =========================================
   SINGLE RED CATEGORY LABEL
========================================= */

.mkdf-blwd-category {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    background: rgba(200, 0, 0, 0.75);

    color: #ffffff;

    padding: 10px 22px;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: 1px;
    text-transform: uppercase;

    white-space: nowrap;
    text-align: center;

    z-index: 10;

    pointer-events: none;

    border: none;
    box-shadow: none;
}


/* Prevent pseudo-elements from creating another label */

.mkdf-blwd-text-holder::before,
.mkdf-blwd-text-holder::after,
.mkdf-blwd-category::before,
.mkdf-blwd-category::after {
    display: none !important;
    content: none !important;
}


/* =========================================
   CLICKABLE LINK
========================================= */

.mkdf-blwd-link {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: block;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .categories-grid .mkdf-blwd-item.card-small,
    .categories-grid .mkdf-blwd-item.card-medium,
    .categories-grid .mkdf-blwd-item.card-large {
        width: 50%;
        height: 300px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {

    .categories-grid .mkdf-blwd-item.card-small,
    .categories-grid .mkdf-blwd-item.card-medium,
    .categories-grid .mkdf-blwd-item.card-large {
        width: 100%;
        height: 240px;
    }

}
/* =========================================
   CATEGORY LABEL
   SAME SIZE + MORE TRANSPARENT
========================================= */

.home-categories .mkdf-blwd-category {
    position: absolute !important;

    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;

    width: 180px !important;
    height: 44px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    /* MORE TRANSPARENT RED */
    background: rgba(220, 0, 0, 0.50) !important;

    color: #ffffff !important;

    padding: 0 !important;

    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;

    line-height: 1 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    text-align: center !important;

    z-index: 10 !important;

    border: none !important;
}


/* Remove duplicate/pseudo red backgrounds */
.home-categories .mkdf-blwd-category::before,
.home-categories .mkdf-blwd-category::after,
.home-categories .mkdf-blwd-text-holder::before,
.home-categories .mkdf-blwd-text-holder::after {
    content: none !important;
    display: none !important;
}


/* Text holder must stay transparent */
.home-categories .mkdf-blwd-text-holder {
    background: transparent !important;
    box-shadow: none !important;
}


/* Keep label centered */
.home-categories .mkdf-blwd-item-inner {
    position: relative !important;
}


/* MOBILE */
@media (max-width: 575px) {

    .home-categories .mkdf-blwd-category {
        width: 160px !important;
        height: 40px !important;
        font-size: 12px !important;
    }

}