
.master-models-gallery-grid {
    display: grid;
    grid-template-rows: repeat(3, auto) 400px 1fr;
    grid-template-columns: repeat(20, 1fr); 
    gap: 20px;
}

@media (max-width: 430px) {
    .master-models-gallery-grid  {
      display: grid;  
      grid-template-columns: repeat(4, 1fr); 
      grid-template-rows: 100px 780px 55px auto 130px; 
      margin-left: 24px;
      margin-right: 24px;
    }
}

.models-gallery-cover {
    width: 100%;
    height: 1100px;
    grid-area: 2 / 1 / 2 / 21; /* row-start, column-start, row-end, column-end */

    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: var(--Black-2);
}

@media (max-width: 430px) {
    .models-gallery-cover {
        grid-area: 2 / 1 / 2 / 5; /* row-start, column-start, row-end, column-end */
    }
}

.models-gallery-cover-grid {
    height: 100%;
    width: 100%;

    display: grid;
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: 130px 280px 270px 180px 30px 30px 60px;
    grid-gap: 20px;
}

@media (max-width: 430px) {
    .models-gallery-cover-grid {
      display: grid;  
      grid-template-columns: repeat(4, 1fr); 
      grid-template-rows: 680px 80px; 
    }
}

.cover-photo-area-1 {
    width: 100%;
    height: 100%;
    grid-area: 2 / 2 / 6 / 8; /* row-start, column-start, row-end, column-end */
    background-color: var(--Black-3);
}

@media (max-width: 430px) {
    .cover-photo-area-1 {
      display: none;
    }
}

.cover-photo-area-2 {
    width: 100%;
    height: 100%;
    grid-area: 2 / 14 / 4 / 20; /* row-start, column-start, row-end, column-end */
    background-color: var(--Black-3);
}

@media (max-width: 430px) {
    .cover-photo-area-2 {
        grid-area: 1 / 1 / 1 / 5; /* row-start, column-start, row-end, column-end */
    }
}

.gallery-hero-cover-title {
    display: none;
    width: 100%;
    height: 100%;
    grid-area: 4 / 9 / 7 / 16; /* row-start, column-start, row-end, column-end */

    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

@media (max-width: 430px) {
    .gallery-hero-cover-title {
        grid-area: 2 / 1 / 2 / 2; /* row-start, column-start, row-end, column-end */
        display: flex;
        align-items: center;
    }
}

@media (max-width: 430px) {
    .gallery-hero-cover-title h2{
        font-size: 36px;
    }
}

/* scroll-down-btn button styles */
.scroll-down-btn {
    width: 100%;
    height: 100%;
    grid-area: 4 / 18 / 6 / 20; /* row-start, column-start, row-end, column-end */

    display: flex;
    align-items: flex-end;
    justify-content: flex-end; 
}

@media (max-width: 430px) {
    .scroll-down-btn {
        grid-area: 2 / 3 / 2 / 5; /* row-start, column-start, row-end, column-end */
        display: flex;
        align-items: center;
    }
}


.scroll-down-btn h3{
    color: var(--White-1);
    text-align: right;
    cursor: pointer;
    
    /* Reg 16 Uppercase */
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
}

/*---------------------------------------------------------------------------------------------------------------------------------------------------
2) Models gallery
----------------------------------------------------------------------------------------------------------------------------------------------------*/
.invisible-index {
    display: none !important;
} 

.model-letter-index {
    width: 100%;
    height: 100%;
    grid-area: 3 / 1 / 3 / 21; /* row-start, column-start, row-end, column-end */

    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: var(--Black-2);
}

@media (max-width: 430px) {
    .model-letter-index {
        grid-area: 4 / 1 / 4 / 5; /* row-start, column-start, row-end, column-end */
        display: flex;
        align-items: center;
    }
}


.model-letter-index-grid {
    height: 100%;
    width: 100%;

    display: grid;
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: 80px 45px 600px auto;
    grid-gap: 20px;
}

@media (max-width: 430px) {
    .model-letter-index-grid {
        grid-template-columns: repeat(4, 1fr); 
        grid-template-rows: auto auto; 
    }
}


/*---------- 1)show-all-btn-area ----------*/

.show-all-btn-area {
    width: 100%;
    height: 100%;
    grid-area: 2 / 2 / 2 / 4; /* row-start, column-start, row-end, column-end */

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 430px) {
    .show-all-btn-area {
        display: none;
    }
}

.alphabet-line-span {
    height: 1px;
    width: 100%;
    background-color: var(--Gray-1);
}

.show-all-btn-area button {
    margin-bottom: auto;
    background: none;
    border: none;
    padding: 0;
    outline: none;
    cursor: pointer;

    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--Gray-1);
}

.show-all-btn-area button:hover {
    color: var(--White-1);
}


/*---------- 2)alphabet-model-search ----------*/

.alphabet-model-search {
    width: 100%;
    height: 100%;
    grid-area: 3 / 2 / 3 / 4; /* row-start, column-start, row-end, column-end */

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

@media (max-width: 430px) {
    .alphabet-model-search {
        display: none;
    }
}

.alpha-list-1 {
    width: 100%;
    height: 100%;
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.alpha-list-1 button {
    margin-bottom: 90%;
    background: none;
    border: none;
    padding: 0;
    outline: none;
    cursor: pointer;

    font-size: 20px;
    font-weight: 400;
    color: var(--Gray-1);
}

.alpha-list-1 button:hover {
    color: var(--White-1);
}

.alpha-list-2 {
    width: 100%;
    height: 100%;
    grid-column: span 1;
    display: flex;
    flex-direction: column;
}

.alpha-list-2 button {
    margin-bottom: 90%;
    background: none;
    border: none;
    padding: 0;
    outline: none;
    cursor: pointer;

    font-size: 20px;
    font-weight: 400;
    color: var(--Gray-1);
}

.alpha-list-2 button:hover {
    color: var(--White-1);
}

.alpha-list-3 {
    width: 100%;
    height: 100%;
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.alpha-list-3 button {
    margin-bottom: 90%;
    background: none;
    border: none;
    padding: 0;
    outline: none;
    cursor: pointer;

    font-size: 20px;
    font-weight: 400;
    color: var(--Gray-1);
}

.alpha-list-3 button:hover {
    color: var(--White-1);
}

/* Mostrar el dropdown en mobile y ocultar el abecedario */
@media (max-width: 430px) {
    .alphabet-model-search {
        display: none;
    }
    
    .dropdown-alphabet {
        display: block;
        grid-area: 1 / 2 / 1 / 4; /* row-start, column-start, row-end, column-end */
        width: 100%;
        padding: 10px;
        font-size: 18px;
        color: var(--Gray-1);
    }
    
    .dropdown-alphabet select {
        width: 100%;
        padding: 8px;
        font-size: 18px;
        background-color: var(--Black-2);
        color: var(--White-1);
        border: none;
        outline: none;
        height: auto; /* Asegura que el contenedor ajuste su altura según el contenido */
        overflow-y: auto; /* Habilita el desplazamiento vertical */
        max-height: 150px; /* Ajusta la altura máxima del dropdown */
    }
}

@media (max-width: 430px) {
    .alphabet-model-search {
        display: none;
    }
}




/*---------- 3)alphabet-model-gallery ----------*/

.alphabet-model-gallery {
    width: 100%;
    height: 100%;
    grid-area: 3 / 5 / 5 / 20; /* row-start, column-start, row-end, column-end */
    background-color: var(--Black-2);

    display: grid;
    grid-template-columns: repeat(15, 1fr);
    grid-gap: 20px;
    text-transform: uppercase;
}

@media (max-width: 430px) {
    .alphabet-model-gallery {
        grid-area: 2 / 1 / 2 / 5; /* row-start, column-start, row-end, column-end */
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-photo-container {
    width: 100%;
    height: 600px;
    overflow: hidden;
    grid-column: span 5;

    color: var(--Gray-1);
    background-color: var(--Black-1);
    position: relative;
}

@media (min-width: 435px) {
    .dropdown-alphabet {
        display: none;
    }
}

.gallery-photo-container img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease; /* Para suavizar el cambio de opacidad */
    background-color: black;
}

.gallery-photo-container a {
    color: var(--Black-2);
}

/* Efecto de hover */
.gallery-photo-container:hover img {
    opacity: 0.05; /* Hacer la imagen semi-transparente */
}

.gallery-photo-container:hover .model-name {
    opacity: 1; /* Mostrar el nombre del modelo */
}

.model-name {
    position: absolute;
    top: 50%;  /* Centrar verticalmente */
    left: 50%;  /* Centrar horizontalmente */
    transform: translate(-50%, -50%);  /* Ajustar la posición exacta */
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;  /* Para suavizar el cambio de opacidad */

    font-size: 24px;
    font-weight: 400;
    color: var(--White-1);
}

/*---------------------------------------------------------------------------------------------------------------------------------------------------
4) Footer
----------------------------------------------------------------------------------------------------------------------------------------------------*/

.footer {
    width: 100%;
    height: 100%;
    grid-area: 5 / 1 / 5 / 21; /* row-start, column-start, row-end, column-end */
    background-color: var(--Black-2);
    height: 350px;
}

@media (max-width: 430px) {
    .footer {
        grid-area: 6 / 1 / 6 / 5; /* row-start, column-start, row-end, column-end */
        height: 100%;
    }
}
