body {
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1.6 !important;
    margin: 0;
    padding: 0;
    background-color: #f9f5f1;
    color: #333;
}

.header {
    text-align: center;
    padding: 20px;
    background-color: #161616;
    color: white;
    border-color: #EDB115;
  }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 200px));
    gap: 20px;
    justify-content: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.card img {
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 10;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 22, 22, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h5 {
    margin: 10px 0;
}

.card-overlay p {
    font-size: 0.775em; /* Font size reduced from 0.9em */
    text-align: center;
    padding: 0 10px;
}

.links a {
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    background-color: #E3B25A;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.675em; /* Font size reduced from 0.8em */
    transition: background-color 0.3s;
}

.links a:hover {
    color: white;
    background-color: transparent;
    border: 1px solid white !important;
}

.mt-200 {
    margin-top: 200px !important;
}

.mb-10 {
    margin-bottom: 6rem !important;
}

.dropdown-menu {
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    background-color: #161616;
    color: white;
}

.option_dropdown {
    color: white !important
}

@media (max-width: 767px) {
    .title-filter {
        margin-bottom: 20px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 15px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (min-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1200px;
    }
}

.view-button {
    background-color: #E3B25A;
    color: #000;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.875em; /* Font size reduced from 1em */
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-button:hover {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

/* Spinner para el loader */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.1em;
}

/* New form element styles */
#filmography-form input.form-control, 
#filmography-form select.form-control {
    font-size: 0.875rem;
}

#filmography-form ::placeholder {
    font-size: 0.875rem; 
}

/* Header element in filmography registration form */
.header h3 {
    font-size: 1.625rem;
}

/* Button in filmography registration link */
.header .btn {
    font-size: 0.875rem;
}