/** * Document: YMAL SCSS * DESC: */
.sgr-ymal.this-is-the-top-of-the-page {
    padding-top: 60px !important;
}
.sgr-ymal h5 {
    font-size: 1.2rem;
}
.sgr-ymal .card-body {
    min-height: 90px;
    font-weight: bold;
    padding: 1.25rem 0rem;
}
@media (max-width: 414px) {
    .sgr-ymal .tile-inner {
        padding: 10px !important;
    }
    .sgr-ymal .tile-inner a {
        font-size: 15px !important;
        line-height: 18px !important;
    }
}
.sgr-ymal .tile-inner:hover {
    box-shadow: #000 0px 13px 27px -5px, #000 0px 8px 16px -8px;
}
.sgr-ymal .zoom {
    transition: transform 0.4s;
    /* Animation */
    z-index: 0;
}
.sgr-ymal .zoom:hover {
    transform: scale(1.15);
    z-index: 111;
    -webkit-box-shadow: 0 10px 6px -6px #777;
    -moz-box-shadow: 0 10px 6px -6px #777;
    box-shadow: 0 10px 6px -6px #777;
    border: 3px solid #e0e0ef;
}
@media (min-width: 576px) {
    .sgr-ymal .zoom:hover {
        transform: scale(1.075);
    }
}
.sgr-ymal .ymal-title-container {
    transition: width 0.5s ease;
    width: 100%;
}
.sgr-ymal .ymal-excerpt {
    font-weight: normal;
    line-height: 20px;
    font-size: smaller;
    height: 80px;
}
.sgr-ymal .ymal-button {
    height: 50px;
}
.sgr-ymal .ymal-button i {
    -webkit-animation: bounce-left 0.8s both;
    animation: bounce-left 0.8s both;
}
.sgr-ymal figure.blkymal {
    padding-right: 0px !important;
    padding-left: 0px !important;
    position: relative;
    max-width: 490px !important;
    border: 3px solid #ddd;
    box-shadow: #00000078 0px 13px 27px -5px;
    background: #ffffff;
}
.sgr-ymal .blkymal a {
    text-decoration: none;
}
.sgr-ymal .blkymal a:hover {
    text-decoration: none;
}
.sgr-ymal .blkymal figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 7px 25px;
    z-index: 1;
    cursor: pointer;
    background: white;
}
@media (max-width: 993px) {
    .sgr-ymal .blkymal figcaption {
        padding: 7px 15px !important;
    }
}
@media (max-width: 768px) {
    .sgr-ymal .blkymal figcaption {
        padding: 7px 5px !important;
    }
}
@media (max-width: 375px) {
    .sgr-ymal .blkymal figcaption {
        padding: 8px !important;
    }
}
.sgr-ymal .blkymal figcaption h3 {
    font-size: 20px;
    text-decoration: none !important;
    font-weight: 600;
    line-height: 22px;
    margin: 7px !important;
    padding: 0 !important;
}
.hover-effect-rightymal_Youmightalsolike:hover .fal.fa-angle-right {
    color: yellow !important;
}
body.high-contrast figure.blkymal:after {
    background: linear-gradient(to bottom, #424142 0 0%, #424142 100%);
}
.ymal-text h1 {
    padding: 0px 25px;
}
.ymal-text h2 {
    padding: 0px 25px;
}
.ymal-text h3 {
    padding: 0px 25px;
}
.ymal-text p {
    padding: 0px 25px;
}


/* YMAL Hover/Tap Reveal Styles */
.ymal-hover-card {
    overflow: hidden;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.ymal-hover-card .ymal-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease-in-out;
    z-index: 10;
}

.ymal-hover-card .ymal-excerpt {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
    margin-top: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Show excerpt on hover for desktop */
@media (hover: hover) and (pointer: fine) {
    .ymal-hover-card:hover .ymal-excerpt {
        opacity: 1;
        max-height: 200px;
        margin-top: 5px;
    }
}

/* Show excerpt on tap/focus for mobile and touch devices */
@media (hover: none) and (pointer: coarse) {
    .ymal-hover-card.active .ymal-excerpt {
        opacity: 1;
        max-height: 200px;
        margin-top: 5px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .ymal-hover-card .ymal-excerpt {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        will-change: opacity, max-height;
    }
}

/* iPad specific - treat as desktop if it supports hover */
@media (hover: hover) and (pointer: fine) and (max-width: 1024px) {
    .ymal-hover-card:hover .ymal-excerpt {
        opacity: 1;
        max-height: 200px;
        margin-top: 5px;
    }
}

/* iPhone and iOS specific touch handling */
@media (max-width: 767px) and (-webkit-min-device-pixel-ratio: 2) {
    .ymal-hover-card.active .ymal-excerpt {
        opacity: 1;
        max-height: 200px;
        margin-top: 5px;
    }
}

/* Focus states for accessibility */
.ymal-hover-card:focus-within .ymal-excerpt {
    opacity: 1;
    max-height: 200px;
    margin-top: 5px;
}

/* Add these styles to your existing row_ymal.css file */

/* Enhanced touch device handling */
@media (hover: none) and (pointer: coarse) {
    .ymal-hover-card.active .ymal-excerpt {
        opacity: 1;
        max-height: 200px;
        margin-top: 5px;
    }

    /* Prevent zoom on double tap for iOS */
    .ymal-hover-card {
        touch-action: manipulation;
    }

    /* Better touch target size */
    .ymal-hover-card .ymal-title-container {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* iOS Safari specific enhancements */
@supports (-webkit-touch-callout: none) {
    .ymal-hover-card {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .ymal-hover-card .ymal-excerpt {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        will-change: opacity, max-height;
    }

    /* Prevent iOS highlight on tap */
    .ymal-hover-card * {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Active state visual feedback for touch devices */
@media (hover: none) and (pointer: coarse) {
    .ymal-hover-card.active {
        transition: all 0.3s ease;
    }

    .ymal-hover-card.active .ymal-caption {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Prevent hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .ymal-hover-card:hover .ymal-excerpt {
        opacity: 0;
        max-height: 0;
        margin-top: 0;
    }
}


/* Enhanced touch device handling - Make this more specific and always apply */
.ymal-hover-card.active .ymal-excerpt {
    opacity: 1 !important;
    max-height: 200px !important;
    margin-top: 5px !important;
}

/* Additional fallback for touch devices */
@media (hover: none) and (pointer: coarse) {
    .ymal-hover-card.active .ymal-excerpt {
        opacity: 1;
        max-height: 200px;
        margin-top: 5px;
    }

    /* Prevent zoom on double tap for iOS */
    .ymal-hover-card {
        touch-action: manipulation;
    }

    /* Better touch target size */
    .ymal-hover-card .ymal-title-container {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* iOS Safari specific enhancements */
@supports (-webkit-touch-callout: none) {
    .ymal-hover-card {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .ymal-hover-card .ymal-excerpt {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        will-change: opacity, max-height;
    }

    /* Prevent iOS highlight on tap */
    .ymal-hover-card * {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Active state visual feedback for touch devices */
@media (hover: none) and (pointer: coarse) {
    .ymal-hover-card.active {
        transition: all 0.3s ease;
    }

    .ymal-hover-card.active .ymal-caption {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Prevent hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .ymal-hover-card:hover .ymal-excerpt {
        opacity: 0;
        max-height: 0;
        margin-top: 0;
    }
}