@charset "utf-8";
/* CSS Document */

/* =========================
   LOADING / ANIMATION
========================= */

.loading {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.loading.loaded {
    opacity: 1;
}

/* =========================
   GRID (MASONRY FIX)
========================= */

.grid {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    position: relative;
}

/* Masonry layout */
.grid-item {
    width: 30%;
    float: left;
    margin-bottom: 10px;
    margin-right: 10px;
    background: #fff;
    box-shadow: 0px 14px 80px rgba(34, 35, 58, 0.2);
    transition: all 300ms ease;
    font-family: inherit;
    transform-origin: center bottom;
    box-sizing: border-box;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .grid-item {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .grid-item {
        width: 45%;
    }

    }

/* =========================
   FILTER
========================= */

.filter {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: center;
    font-size: 14px;
}

.filter li {
    display: inline-block;
    margin: 0 5px 5px 0;
}

.filter li a {
    display: block;
    padding: 4px 15px;
    text-decoration: none;
    background: #ccc;
    color: #000;
    transition: background-color 0.3s;
}

.filter li a.active,
.filter li a:hover {
    background-color: #737373;
    color: #fff;
}

/* =========================
   CARD IMAGE
========================= */

.card__image {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.card__link {
    display: block;
    position: relative;
}

/* IMAGES */
.card__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.card__image:hover img {
    transform: scale(1.05);
}

/* VIDEOS / IFRAME */
.card__image video,
.card__image iframe {
    width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
    display: block;
    border: 0;
    background: #000;
}

/* =========================
   OVERLAY TITLE (AJUSTÉ)
========================= */

.card__overlay {
    position: absolute;
    top: 10px;
    left: 10px;

    display: inline-block;
    background: rgba(0,0,0,0.5);

    padding: 8px 12px;
    border-radius: 4px;

    opacity: 0;
    transition: opacity 0.3s ease;

    pointer-events: none;
}

.card__image:hover .card__overlay {
    opacity: 1;
}

.card__title {
    color: #fff;
    font-size: 16px;
    text-align: left;

    margin: 0;
    padding: 0;

    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.card__image:hover .card__title {
    transform: translateY(0);
}

/* =========================
   DATE BOX / TAG
========================= */

.card__cover {
    position: relative;
}

.date-box {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.date-box .day {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

.date-box .date {
    font-size: 12px;
    color: #555;
}

.card__tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
}

/* =========================
   MEDIA FIX GLOBAL
========================= */

img.mask {
    width: 100%;
}

/* =========================
   MEDIA ELEMENTS
========================= */

.card__image video,
.card__image iframe {
    width: 100%;
    display: block;
}