@font-face {
    font-family: 'CircularPro';
    src: url('../fonts/CircularPro-Book.woff2') format('woff2'),
         url('../fonts/CircularPro-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CircularPro';
    src: url('../fonts/CircularPro-Medium.woff2') format('woff2'),
         url('../fonts/CircularPro-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CircularPro';
    src: url('../fonts/CircularPro-Bold.woff2') format('woff2'),
         url('../fonts/CircularPro-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CircularPro';
    src: url('../fonts/CircularPro-Black.woff2') format('woff2'),
         url('../fonts/CircularPro-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'CircularPro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    padding-bottom: 2rem;
}

.site-header {
    font-size: 0.875rem;
    color: #666666;
    margin-bottom: 1rem;
    line-height: 1.2;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    display: inline;
    margin-right: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333333;
    display: flex;
    align-items: center;
}

nav a {
    font-size: 1.25rem;
    font-weight: 500;
}

img {
    max-width: 100%;
    width: auto;
    max-height: 800px;
    height: auto;
    margin-top: 25px;
    margin-bottom: 25px;
}

/* Text styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'CircularPro', sans-serif;
    font-weight: 500;
}

h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 900;
}

h2 {
    font-size: 2rem;
    font-weight: 500;
}

h3 {
    font-size: 1.75rem;
    font-weight: 500;
}

a {
    color: #333333;
}

footer {
    margin-top: 80px;
    border-top: 1px solid #eeeeee;
    padding-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section {
    flex: 1;
}

.footer-section p {
    margin: 0;
    font-size: 0.875rem;
}

footer a {
    text-decoration: none;
    color: #666666;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #333333;
}

/* Mobile responsive footer */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-section p {
        text-align: center;
    }
}

/* Section styling for single-page layout */
.about, .contact {
  margin-bottom: 80px;
  padding-bottom: 60px;
}

.about:not(:last-child), .contact:not(:last-child) {
  border-bottom: 1px solid #e8e8e8;
}

.about {
  margin-bottom: 80px;
  padding-bottom: 60px;
}

.contact {
  margin-bottom: 40px;
  padding-bottom: 0;
  border-bottom: none;
}


/* Student list styles */
.student-list {
    margin-top: 2rem;
}

.student-item {
    margin-bottom: 0.25rem;
}

.student-item a {
    text-decoration: none;
    color: #333333;
    font-size: 1.125rem;
    display: block;
    padding: 0.25rem 0;
}

.student-item a:hover {
    text-decoration: underline;
}

/* Portfolio images styles */
.portfolio-images {
    margin-top: 2rem;
}

.portfolio-item {
    margin-bottom: 3rem;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    margin: 0;
}



/* Student page styling */
.student-text {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: #555;
}

/* Tight spacing for image paragraphs */
p:has(picture) {
    margin-bottom: 0;
}

/* Alternative fallback for browsers without :has support */
p picture {
    display: block;
    margin-bottom: 0;
}

.image-caption {
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #999;
    text-align: left;
    line-height: 1.4;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #fff;
    font-size: 1rem;
    text-align: center;
    margin-top: 1rem;
    max-width: 80%;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    transition: opacity 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    line-height: 1;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    line-height: 1;
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    line-height: 1;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .lightbox-content {
        padding: 1rem;
    }
    
    .lightbox-image {
        max-width: 95%;
        max-height: 75%;
    }
    
    .lightbox-close {
        font-size: 2.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 3rem;
        padding: 0.5rem;
    }
    
    .lightbox-caption {
        font-size: 0.9rem;
        max-width: 95%;
    }
}