@charset "UTF-8";

/* =========================================
   Gallery Styles
   Target: gallery/*.jsp
   ========================================= */

.gallery-item {
    cursor: pointer;
    margin-bottom: 30px;
    transition: transform 0.2s;
    text-align: center;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Placeholder default styles moved from inline */
    background-color: #f8f9fa;
    color: #6c757d;
}

.gallery-title {
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-meta {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

/* Modal Custom Styles */
.modal-img-container {
    width: 100%;
    height: 500px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-content-container {
    padding: 30px;
    height: 500px;
    overflow-y: auto;
}

.modal-title-custom {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #073a7e;
    padding-bottom: 10px;
}

.modal-body-custom {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Modal Placeholder Icon */
.modal-placeholder-icon {
    display: none;
    color: #ccc;
    font-size: 5rem;
    /* fa-5x equivalent */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-img-container {
        height: 300px;
    }

    .modal-content-container {
        height: auto;
        max-height: 400px;
    }
}