body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: #fff;
    color: #222;
}

h1 {
    font-size: clamp(1rem, 5vw, 2rem);
}

img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
}

.project-page {
    max-width: 800px;
    min-width: 320px;
    margin: 60px auto;
    padding: 0 20px;
}

.project-title h1 {
    font-size: 2rem;
    margin-bottom: 0.2em;
}

.project-title .subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2em;
}

.project-body p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.project-body img {
    width: 100%;
    margin: 2rem 0;
    border-radius: 6px;
    opacity: 1;
    transition: opacity 1s ease;
}

.image-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.image-row img {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.image-row img:hover,
.circle-row img:hover {
    transform: scale(1.05);
}

.project-body video {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 5%;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal .prev,
.modal .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 3rem;
    color: white;
    padding: 0 20px;
    user-select: none;
    transform: translateY(-50%);
}

.modal .prev {
    left: 10px;
}

.modal .next {
    right: 10px;
}

.circle-row {
    display: flex;
    justify-content: flex-end;
    gap: 3rem;
    margin: 2rem 0;
}

.circle-row img {
    width: clamp(80px, 15vw, 150px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    opacity: 1;
    transition: transform 0.3s ease, opacity 1s ease;
    cursor: pointer;
}

.project-description p {
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 2em;
}

.project-media img,
.project-media video {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 6px;
}
