.about_info, .news {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width:75%;
    margin: 20px;
    gap:10px;
}

.news_content, .info_content {
    font-size: 1.5em;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    margin: 20px;
    gap: 20px;

}

.info_content p {
    font-size: 1em;
    line-height: 1.6;
    border-radius: 20px;
    /* padding: 20px; */
}

.projects {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin: 20px;
    gap:30px;
}

.project {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: var(--content-background);
    max-width: 700px;
    min-width: 300px;
    min-height: auto;
    margin: 20px;
    padding: 20px;
    border : 2px solid var(--content-border-color);
    border-radius: 50px;
    gap: 10px;
    box-shadow: var(--box-shadow);
    --x: 50%;
    --y: 50%;
}

img, iframe {
    width: 100%;
    border-radius: 30px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

iframe {
    aspect-ratio: 16 / 9;
}

a.project:hover {
    transform: scale(1.02);
    background-color: var(--hover-content-background);
    box-shadow: var(--hover-box-shadow);
    border-color: var(--text-color);
    transition: all .2s ease;
}

a.project:active {
    transform: scale(0.98);
    background-color: var(--hover-content-background);
    box-shadow: var(--hover-box-shadow);
    border-color: var(--text-color);
    transition: all .2s ease;
}

.description .description_text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap:15px;
}

.description_text {
    margin-top: 10px;
}

.description {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    gap:10px;
}

a.non-clickable {
    border-color : var(--darker-background-color);
}

a.non-clickable:hover {
    cursor: default;
    transform: scale(1);
    background-color: var(--content-background);
    box-shadow: var(--box-shadow);
    border-color: var(--darker-background-color);
}

h1 {
    font-size: 2.5em;
    color: var(--header-color);
}

p {
    font-size: 1.2em;
    line-height: 1.6;
    border-radius: 20px;
    /* padding: 20px; */
}

.disclaimer {
    font-size: 14px;
    color: var(--note-color);
    margin: 10px auto;
    text-align: center;
    max-width: 90%;
}

p.note {
    color : var(--note-color);
    font-size: 1em;
    margin: 5px;
}

a:not(.project) {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-bottom: 7px;
    padding-top: 7px;
}


a:not(.project):after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    border-radius: 10px;
    height: 2px;
    background: var(--link-underlined-color);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: right center;
    transform-origin: right center;
    -webkit-transition: -webkit-transform .6s cubic-bezier(.19, 1, .22, 1);
    transition: -webkit-transform .6s cubic-bezier(.19, 1, .22, 1);
    transition: transform .6s cubic-bezier(.19, 1, .22, 1);
    transition: transform .6s cubic-bezier(.19, 1, .22, 1), -webkit-transform .6s cubic-bezier(.19, 1, .22, 1);
}

a:not(.project):after {
    background: var(--link-underlined-color);
}

a:not(.project):hover:after {
    -webkit-transition-duration: .4s;
    transition-duration: .4s;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: left center;
    transform-origin: left center;
}

a.arrow {
    text-decoration: none;
}

a.arrow:after {
    display: none;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    width: 50px;
    height: 50px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.arrow svg {
    position: absolute;
    width: 48px;
    height: 48px;
}

.prev svg {
    right: 2px;
    top: 1px;
}

.next svg {
    left: 2px;
    top: 1px;
}

.share-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    color: white;
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transform: scale(1);
    transition: transform 0.2s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

/* Photography Portfolio Styles */
#toc {
    margin: 20px auto;
    max-width: 90%;
    text-align: center;
}

#toc h2 {
    font-size: 2em;
    color: var(--header-color);
    margin-bottom: 20px;
}

#toc ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

#toc li {
    background: var(--content-background);
    border: 2px solid var(--content-border-color);
    border-radius: 20px;
    padding: 10px 20px;
    box-shadow: var(--box-shadow);
}

#toc a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

#toc a:hover {
    color: var(--link-default-color);
}

.photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    max-width: 82%;
    margin: 40px auto;
    padding: 20px 20px 15px 20px;
    background: var(--content-background);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.photo-section h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: var(--header-color);
    text-align: center;
}

.photo-item {
    width: fit-content;
    height: fit-content;
    margin-bottom: -4px;
}

.photo-grid {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    /* Tightened spacing, adjustable if needed */
    overflow: visible;
}

.photo-grid img {
    width: 175px;
    height: 175px;
    object-fit: cover;
    border-radius: 15px;
    /* Always applies rounded corners */
    clip-path: inset(10px round 15px);
    /* Clips to ~230x230 with rounded corners */
    transition: clip-path 0.3s ease, transform 0.3s ease;
    /* Smooth reveal and scale */
    cursor: pointer;
    margin: -5px;
}

.photo-grid img:hover {
    clip-path: inset(0 round 15px);
    /* Uncovers full 250x250 with rounded corners */
    transform: scale(1.04);
    /* Subtle zoom on hover */
}
/* Lightbox Modal Styles */
#image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    background-color: var(--high-res-viewer-bg);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transform: none;
    transition: none;
}

#image-modal .prev,
#image-modal .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3em;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
    z-index: 1001;
}

#image-modal .prev:hover,
#image-modal .next:hover {
    color: var(--link-default-color);
}

#image-modal .prev {
    left: 10px;
}

#image-modal .next {
    right: 10px;
}

/* Image EXIF */
.exif-text {
    color: var(--text-color);
    font-size: 14px;
    text-align: center;
    max-width: 90%;
    margin-top: 10px;
    opacity: 1;
}

#image-exif {
    /* color: white; */
    font-size: 14px;
    font-style: italic;
    text-align: center;
    margin-top: 10px;
    max-width: 90%;
    word-wrap: break-word;
}