@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Radley:ital@0;1&display=swap');


/* text styling lmao */

h1 {
    font-family: "Radley";
    display: inline;
}

h3 {
    margin: 0.5em;
    font-family: "Radley";
    display: inline;
}

a:link {
    color: black;
    text-decoration: none;
}

a:visited {
    color: black;
}

a:hover {
    color: orange;
}


/* makes the text sideways */
div.main {
    display: flex;
    padding: none;
    /*background-image: url('img_pinboard.jpg');*/
}

div.gallery {
    position: relative;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

div.sidebar {
    writing-mode: vertical-lr;
    display: inline;
    position: fixed;
    z-index:99;
}

.photo-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 12px;
}

.photo-card img {
    display: block;
    width: 100%;
    height: auto;
    transition: filter 0.25s ease;
    border-radius: 0.5em;
}

.photo-card:hover img {
    filter: brightness(0.5);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 0.75rem;
    color: white;
    font-family: "Radley", serif;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.photo-card:hover .photo-caption {
    opacity: 1;
}


/* lightbox */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

#lightbox-caption {
    color: white;
    font-family: "Radley", serif;
    font-size: 1.1rem;
    text-align: center;
}

.lightbox-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    font-family: "Radley", serif;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

.lightbox-close:hover {
    color: orange;
}


/* responsive */

@media only screen and (max-width: 1000px) {

     div.sidebar {
        writing-mode: horizontal-tb;
        background-color: white;
        z-index: 99;
        position: fixed;
        top: 0;
        left: 0.5em;
        width: 100%;
    }

    h1 {
	padding-left: 0.5em;
        display: block;
        font-size: x-large;
    }

    h3 {
        margin: 0em;
	padding-left: 0.5em;
        padding-right: 0.5em;
        font-style: italic;
        font-weight: lighter;
    }

    div.gallery {
    	position: relative;
    	box-sizing: border-box;
    }
}
