* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #fff;
    padding: 20px;
    background-image: url('../img/eyelinful-bg.png');
    background-repeat: repeat;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

p {
    color: #fff;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.category-section {
    margin-bottom: 50px;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid;
    text-transform: uppercase;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.7);
}

.card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.card-info {
    padding: 15px;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5));
    position: absolute;
    bottom: 0;
    width: 100%;
}

.card-info h3 {
    font-size: 1.2rem;
    color: #fff;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #222;
    border: 1px solid #444;
    width: 90%;
    max-width: 650px;
    border-radius: 12px;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #fff;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

@media (min-width: 600px) {
    .modal-body {
        flex-direction: row;
    }
}

#modalImg {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

@media (min-width: 600px) {
    #modalImg {
        width: 45%;
        max-height: none;
    }
}

.modal-text {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

#modalName {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

#modalDialogue {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    color: #ccc;
}