@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
body{background:#f8f8f8; color:#111;   font-family: "EB Garamond", serif;  font-optical-sizing: auto;font-style: normal;margin:2rem;}
a{color:#111;text-decoration:none;}
img{max-width:100%;}
::selection{background:#999;color:#111;}
#masthead{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;}
#masthead > * {margin:0;}

/*index*/
#image{ position: fixed;top: 50%;left: 75%;transform: translate(-50%, -50%);display:block;max-height:80vh;max-width:40vw;}
.site-title{font-weight:normal;font-style:italic;font-size:2rem;}
article{margin:0.3rem 0;}
.entry-title{font-weight:normal;font-size:1.5rem;}
.entry:hover{opacity:0.95;}
.entry h2{margin:0;font-weight:normal;font-style:italic;font-size:1.3rem;}
summary { list-style: none; cursor:pointer;display:inline-block;}
summary::-webkit-details-marker { display: none; }
h2.section-title{padding:0.75rem 0;margin:0;font-style:italic;font-size:1.8rem;font-weight:normal;}
#paintings h2.section-title{padding-top:0;}
.poetry{width:20%;margin:0 auto;}
#bg-image{width:100vw;height:100dvh;position:fixed;top:0px;left:0px;pointer-events:none;z-index:-3;background:url(/paca.jpg) #f8f8f8;display:block;background-size:cover;background-position:center;}
#sig{width:300px;}

/*single entry*/
.gallery {  display: flex;  flex-wrap: wrap;  justify-content: space-between;  gap: 2rem; align-items: center;}
.gallery .img-wrapper {  max-width: 30%;}
.gallery img {  width: 100%;  height: auto;  display: block;  cursor: zoom-in;  }

@media only screen and (max-width: 1200px) {
	#bg-image{width:100%;position:absolute;right:0;bottom:0;}
	#image{display:none;}
	.poetry{width:100%;}
	.gallery .img-wrapper { width: 100%; max-width: 100%;}
	#masthead{flex-wrap:wrap;gap:1rem;}
	.entry-title{width:100%;}
	a.entry-title{font-size:1.3em;}
}

/* lightbox stuff */

/* Info below image on small screens */
.info-below {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Lightbox hidden by default */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: white;
    justify-content: center;
    align-items: center;
	cursor: zoom-out;
}

.lightbox[aria-hidden="false"] {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    padding: 1rem;
    text-align: left;
    outline: none;
	cursor: default;
}

.lightbox-img-container {
    position: relative;
    overflow: hidden; /* prevents zoom overflow */
    display: inline-block;
    max-height: 80vh;
    max-width: 90vw;
}

.lightbox-img {
    max-height: 80vh;
    width: auto;
    margin-bottom: 0.25rem;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    will-change: transform;
}

.lightbox-info {
    min-height: 1rem; /* reserve space so text appears immediately */
    font-size: 1rem;
    color: #111;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    color: #000;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: background 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%);
}

.lightbox-arrow.left {
    left: 1rem;
}

.lightbox-arrow.right {
    right: 1rem;
}

@media (max-width: 1200px) {
    .lightbox-arrow {
        display: none !important;
    }
}


/* Hide lightbox on small screens */
@media (max-width: 1200px) {
    .lightbox {
        display: none !important;
    }
}