.custom-select-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

#edit-cover-project {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background: #fff;
    z-index: 999;
    display: none;
}

.custom-select-dropdown div {
    padding: 5px 10px;
    cursor: pointer;
}

.custom-select-dropdown div:hover {
    background: #f0f0f0;
}

/* Contenedor principal */
#container-gif-home {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white; /* relleno cuando el GIF no ocupa todo */
}

/* GIF por defecto (pantallas grandes) */
#container-gif-home img {
    max-height: calc(100vh - 101px);
    max-width: 100%;
    width: 100%;        /* ancho siempre al 100% */
    height: auto;       /* mantiene proporción */
    object-fit: contain;
}

/* Para pantallas móviles */
@media (max-width: 767px) {
    #container-gif-home {
        height: calc(100vh - 101px);       /* contenedor ocupa todo el alto del viewport */
    }
    #container-gif-home img {
        width: 100%;         /* ancho completo */
        height: auto;        /* mantiene proporción */
        object-fit: contain; /* no se recorta */
    }
}

.grid-proyects {
    width: 100%;
    position: relative; /* importante para Masonry */
}

.grid-proyects .grid-sizer {
    width: 50%; /* define ancho de columna normal */
}

.grid-proyects .grid-item {
    width: 50%; /* dos columnas */
    position: relative;
}

.grid-proyects .overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: end;
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 100%;
    cursor: pointer;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .grid-proyects .overlay-text {
        font-size: 22px;   /* o 24px si lo quieres más grande */
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .grid-proyects .overlay-text {
        font-size: 18px;
    }
}

.grid-proyects .grid-item:hover .overlay-text {
    opacity: 1;
}

.grid-proyects .grid-item img,
.grid-proyects .grid-item video {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.grid-proyects .grid-item img:hover,
.grid-proyects .grid-item video:hover {
    filter: brightness(46%) sepia(10%) saturate(200%);
}

/* Items full-width */
.grid-proyects .grid-item--full {
    width: 100%;
}