/* ==========================================================
   ODEM Equipment
   ========================================================== */

.odem-equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin: 50px 0 80px;
}

.odem-equipment-card {
    overflow: hidden;
}

.odem-equipment-link {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    border-radius: 6px;
}

.odem-equipment-link img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;

    transition: transform .35s ease;
    box-shadow: 0 .75em 1.5em rgba(0,0,0,.25);
}

.odem-equipment-title {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 16px 18px;

    background: rgba(0,0,0,.60);

    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;

    transition: background .35s ease;
}

.odem-equipment-link:hover img {
    transform: scale(1.05);
}

.odem-equipment-link:hover .odem-equipment-title {
    background: rgba(0,0,0,.80);
}

.odem-equipment-noimage {
    display: flex;
    justify-content: center;
    align-items: center;

    aspect-ratio: 4 / 3;

    background: #666;
    color: #fff;
}

/* ==========================================================
   Single Equipment
   ========================================================== */

.single-eszkozok .entry-meta,
.single-eszkozok .ast-single-post-meta,
.single-eszkozok .posted-on,
.single-eszkozok .posted-by,
.single-eszkozok .cat-links,
.single-eszkozok .tags-links {
    display: none !important;
}

.single-eszkozok .equipment-specs,
.single-eszkozok .elementor-widget-text-editor {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 24px;
    color: #fff;
}

.single-eszkozok .elementor-widget-text-editor ul {
    margin: 0;
    padding-left: 20px;
}

.single-eszkozok h1 {
    margin-bottom: 40px;
}

.single-eszkozok img {
    box-shadow: 0 .75em 1.5em rgba(0,0,0,.25);
}

/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width:1024px){

    .odem-equipment-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width:767px){

    .odem-equipment-grid{
        grid-template-columns:1fr;
    }

}

/* Navigation layout */
.single-eszkozok .post-navigation {
    display: none;
}

/* ==========================================
   Heavy Machines category cards
   ========================================== */

.heavy-machines-grid{
    display:flex;
    flex-wrap:wrap;
    gap:30px;
}

.heavy-machines-grid .heavy-machines-card{
    position:relative;
    flex:0 0 calc(33.333% - 20px);
    overflow:hidden;
    border-radius:6px;
    background:#000;
}

.heavy-machines-grid .heavy-machines-card .elementor-widget-image{
    margin:0 !important;
    overflow:hidden;
    height:260px;
    display:flex;
    align-items:flex-end;
    justify-content:center;
}


.heavy-machines-grid .heavy-machines-card img{
    display:block;
    width:auto;
    max-width:100%;
    height:auto;
    transition:transform .35s ease;
    transform-origin:center bottom;
}

.heavy-machines-grid .heavy-machines-card:hover img{
    transform:scale(1.05);
}

.heavy-machines-grid .heavy-machines-card .elementor-heading-title{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    margin:0;
    padding:18px 20px;
    color:#fff;
    text-align:center;
    text-transform:uppercase;
    font-size:24px;
    font-weight:700;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.80),
        rgba(0,0,0,.55),
        rgba(0,0,0,0)
    );
}

