.caixa-flex { display: flex; max-width: 80%; margin: 0 auto; } @media screen and (max-width: 768px) { .caixa-flex { display: block; max-width: 80%; } } .reqport { flex: 1 1 0; } .slider-container { overflow: hidden; width: 100%; height: 100%; min-height: 30vh; } .slider-container ul { margin: 0; padding: 0; display: table; table-layout: fixed; height: 100%; list-style: none; } .card { height: 100%; color: #fff; } .card .background { height: 0; } .card .background img { position: absolute; width: 100%; height: auto; min-height: 100%; min-width: 100%; object-fit: cover; } .card-overlay { overflow: hidden; width: 100%; height: 100%; position: absolute; background: black; opacity: 0; } .card .content { position: absolute; box-sizing: border-box; padding: 0.25em 0.5em; margin: 0; display: flex; flex-direction: column; height: inherit; width: 100%; } .card .title { font-size: 150%; font-weight: bold; text-shadow: black 0px 0px 5px; } .card .description { flex: auto; } .card .image-link { z-index: 1; } .card .image-link a { color: #fff; font-size: 75%; text-decoration: underline; float: right; max-width: 100%; overflow: hidden; white-space: nowrap; } .nomobile.slider-container ul { width: 100%; } .nomobile.slider-container li { display: table-cell; position: relative; width: 33.33333%; transition: all 400ms ease; border: 1px solid white; border-right: 1px solid #ccc; } .nomobile.slider-container li:last-child { border-right: 0; } .nomobile.slider-container ul:hover li { width: 10%; } .nomobile.slider-container ul:hover li:hover { width: 60%; } .nomobile.slider-container li:hover .card-overlay { opacity: 0.5; } .nomobile.slider-container li:hover .show-on-hover { opacity: 1; } .nomobile .card .show-on-hover { opacity: 0; } .card > a { position: absolute; width: 100%; height: 100%; z-index: 1; opacity: 0; } .mobileonly .card { position: relative; overflow: hidden; margin: 0.75em; } .mobileonly .card .image-link { z-index: 1; } .mobileonly .card .image-link a { float: left; } .mobileonly .background { position: relative; } .mobileonly .content { position: relative; } .mobileonly .card-overlay { opacity: 0.5; }