@import url('https://fonts.googleapis.com/css?family=Roboto');

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #101214;
    color: #7A7C80;
}

h1, h2, .white {
    color: #fff;
}

a {
    color: #7A7C80;
    text-decoration: none;
    transition: 0.3s;
}

/* section 1 */
.section-1 {
    padding-top: 15vh;
    text-align: center;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #fff;
}

.section-1 p {
    font-size: 1.1rem;
    padding-bottom: 10px;
    margin: 0;
}

.section-1 h1 {
    font-size: 1.7rem;
    margin-bottom: 10px;
    margin-top: 0;
}

.section-1 a {
    font-size: 1.5rem;
    padding: 10px;
    display: inline-block;
}

/* section 2 */
.section-2 {
    padding-top: 10vh;
    width: 70%;
}

.section-2 h2 {
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.section-2 p {
    font-size: 1.1rem;
    padding-bottom: 10px;
    margin: 0;
}

.section-2 a {
    display: inline-block;
    padding: 5px;
    font-size: 1.2rem;
    padding-left: 0;
    margin-bottom: 10px;
    width: 100px;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* inline header (links section) */
.inline-header {
    display: flex;
    align-items: baseline; 
    gap: 15px;             
    margin-bottom: 25px;   
}

.inline-header h2 {
    margin: 0;             
}

.inline-header a {
    width: auto;           
    margin-bottom: 0;      
}

/* animations / utilities */
.section-2 a:hover, 
.section-2 a:focus {
    color: #fff;
    transform: translateX(5px);
    cursor: pointer;
}

.section-1 a:hover,
.section-1 a:focus {
    color: #fff;
    transform: scale(1.1);
    cursor: pointer;
}

/* photography gallery layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
    background-color: #1a1d20;
    aspect-ratio: 1 / 1; 
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(20%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
    cursor: pointer;
}

/* Lightbox Modal System */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 18, 20, 0.95);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #7A7C80;
    font-size: 40px;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #fff;
    transform: scale(1.1);
}

/* media queries */
@media(max-width: 780px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .section-1 {
        padding: 0;
        padding-top: 5rem;
    }
    .section-2 {
        padding: 0;
        padding-left: 1.5rem;
        padding-top: 2rem;
        width: 90%;
    }
}

@media(max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .lightbox-content {
        max-width: 95%;
        max-height: 75vh;
    }
}
