/* Reset and base styling */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

/* Grid container */
.main-container {
    display: grid;
    grid-template-columns: 250px 2px auto;
    /* You can customize these widths */
    min-height: 100vh;
}

/* Left sidebar */
.list-group {
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
    height: 100%;
}

@media (min-height: 780px) {
    .list-group {
        font-size: 1.4rem;
        padding-top: 50px;
    }
}

.list-group .list-title {
    color: #004d40;
    font-size: 3.0rem;
    text-align: center;
    font-weight: 500;
}

/* Separator line */
.separator {
    background-color: #ccc;
    width: 2px;
    height: 100%;
}

/* Right content */
.right-content {
    padding: 40px;
    background-color: #fff;
}

/* List item styles */
.list-group-item {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Active and hover styles */
.list-group-item.active {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
}

.list-group-item:hover:not(.active):not(.disabled) {
    background-color: #f0f0f0;
    cursor: pointer;
}

/* Disabled style */
.list-group-item.disabled {
    color: #aaa;
    pointer-events: none;
    background-color: #e9e9e9;
}

.project-detail {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.project-detail.active-detail {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery container using Flexbox */
.right-content {
    padding: 30px;
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    /* Center images */
}

/* Gallery images */
.right-content img {
    flex: 1 1 300px;
    /* base width of 300px, grows and shrinks as needed */
    max-width: 100%;
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    object-fit: cover;
}

@media (min-height: 780px) {
    .right-content img {
        width: 500px;
        padding: 5px;
        padding-top: 20px;
    }
}

.right-content img:hover {
    transform: scale(1.02);
}




/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.modal-img,
.modal-video {
  display: block;
  margin: auto;
  width: 400px;       /* 👈 Change this as needed */
  height: auto;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
  background: black;
}



.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #f1f1f1;
}