:root {
    --background-color: rgb(255, 255, 255);
    --text-color: rgb(0, 0, 0);
    --links-color: #ebbbd3; 
    --selection-color: #c0d9e2; 
    --text-size: 15px;
    --text-size-mobile: 18px;
}

body {
    margin: 3;
    background-color: var(--background-color);
    font-size: var(--text-size);
    color: var(--text-color);
    line-height: 1.5;
    padding: 40px 24px;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
}

h1, h2, h3, h4, h5, h6, p, li, a, .block, .ascii {
    font-family: 'Courier New', Courier, monospace;
}

.wrapper {
    max-width: 640px;
}

.block {
    margin-bottom: 32px;
    font-size: 15px;
}

.turn-right {
    transform: rotate(0.4deg);
}

a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--links-color);
}

ul {
    list-style: none; 
    padding-left: 18px;
    margin: 8px 0 0 0;
}

li::before {
    content: "⊹";       
    display: inline-block;
    width: 20px;        
    margin-left: -20px; 
    font-weight: bold;
}

li {
    margin-bottom: 4px;
}

.ascii {
    font-size: 12px;
    opacity: 1;
    margin-bottom: 24px;
}

.footer {
    margin-top: 48px;
    font-size: 13px;
    opacity: 0.6;
}

::selection {
    background: var(--selection-color);
    color: #fff;
}

::-moz-selection {
    background: var(--selection-color);
    color: #fff;
}

.soft {
    position: relative;
    color: #000;
    text-decoration: none;
    text-shadow: 0 0 8px #f6d8e7, 0 0 12px #cd75a1;
    transition: text-shadow 0.3s ease;
}

.soft:hover {
    text-shadow: 0 0 12px #e392bb, 0 0 18px #ff69b4;
}

#foto {
    position: fixed; 
    bottom: 30px;    
    right: 20px;     
    max-width: 35%;  
    height: auto;    
    z-index: 1;     
    transition: all 0.3s ease;
}

.header {
    display: flex;
    align-items: baseline; 
    gap: 22px;
    margin-bottom: 24px;
}

.header .name {
    font-size: 28px;
    font-weight: bold;
    text-transform: lowercase;
    line-height: 1.2;
}

.header .info {
    font-size: 16px;
    color: rgba(0,0,0,0.4); 
    text-transform: lowercase;
}

@media screen and (max-width: 600px) {
    body {
        font-size: var(--text-size-mobile);
    }

    .wrapper {
        padding-bottom: 0;
    }

    #foto {
        position: relative; 
        display: block;
        margin: 24px auto 0 auto; 
        max-width: 80%; 
        bottom: 0;
        right: 0;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 24px;
    }

    .header .name {
        font-size: 24px;
    }

    .header .info {
        font-size: 14px;
    }
}

/* fotos agua viva */

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 48px 0;
}

.image-grid img {
    width: 100%;
    height: auto;
    display: block;
}

/* mobile */
@media screen and (max-width: 600px) {
    .image-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 32px 0;
    }
}

/* pag de fotos - agua viva */

.wrapper.portfolio-photos {
    max-width: 1200px;
}

.wrapper.portfolio-photos .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin: 64px 0;
}

@media screen and (max-width: 600px) {
    .wrapper.portfolio-photos {
        max-width: 100%;
    }

    .wrapper.portfolio-photos .image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
    }
}

.wrapper.portfolio-photos .image-single img {
    width: 100%;
    display: block;
    margin: 64px 0;
}

.wrapper.portfolio-photos img {
    border: 1px solid #000;
    box-sizing: border-box; 
}

/* LIGHTBOX */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
}

.wrapper.portfolio-photos .image-grid.photography img.full-width {
    grid-column: 1 / -1;
    width: 100%;
    display: block;
}

/*estrelinhas*/
.star {
    position: absolute;
    color: black;
    font-size: 17px;
    pointer-events: none;
    user-select: none;
    transition: opacity 1s linear;
}

/*musicuxa*/
.sound-ui {
  position: fixed;
  top: 24px;
  right: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 999;
}

.sound-text {
  font-size: 22px;
  opacity: 0.9;
  transition: opacity 1.2s ease;
}

.sound-text.hidden {
  opacity: 0;
  pointer-events: none;
}

.audio-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: black;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.audio-btn:hover {
  opacity: 1;
}

.icon-mute {
  display: none;
}

.audio-btn.muted .icon-sound {
  display: none;
}

.audio-btn.muted .icon-mute {
  display: inline;
}
@media (max-width: 768px) {
  .sound-ui {
    display: none;
  }
}
