/*
NOTES:
    bg: ##f4dbc7
   red: #F02554
  text: #ef6277 
*/
:root {
    --bg: #f4dbc7;
    --red: #e84c63;
    --text: #7a0c21;
  
  
  /* gallery styling */
    --minimum-img-width: 150px;
    --maximum-img-width: 400px;
    --maximum-columns: 4;
    --image-background: #fff;
    --column-gap: var(--spacing);
  /* misc styling */
    --max-width: 800px;
    --spacing: 15px;
    --border-radius: 4px;
    --underline: wavy var(--accent-light);
    --border: dashed var(--accent) 1px;

    /* calculations - don't worry about this */
    --halfspacing: calc(var(--spacing) / 2);
    --doublespacing: calc(var(--spacing) * 2)
}

body {
  font-size: 16px;
	background-color: var(--bg);
	font-family: Inconsolata;
	font-size: 18px;
	color: var(--text);
	
}

a {
    text-decoration-line: underline;
    text-decoration-style: wavy;
  color: var(--red);
}
/*************************** ^^^^ GENERAL SPECIFIC  ^^^^ **************************/





/*******************************  STYLE SPECIFIC  ***************************/
.whole {
  
}

.banner {}

.desc {
}

.button {
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
  padding: 0.8em;
  margin-right: 1em;
  border: solid 3px;
  border-radius: 0.8em;
  background-color: var(--bg);
  color: var(--text);
}
.button:hover {
  background-color: var(--red);
}


/* boxes & flex */
.box {
    padding: var(--spacing);
    border: var(--border);
    margin: var(--spacing) auto;
    border-radius: var(--border-radius);
    break-inside:avoid;
}
/* image gallery */
#gallery {
    margin: var(--doublespacing) auto;
    display: block;
    text-align: center;
    line-height: 1.2em;
    font-size: .9em;
}
#gallery.columns {
    columns: var(--minimum-img-width) var(--maximum-columns);
    gap: var(--column-gap);
}

#gallery img {
    border-radius: 5px;
    margin: var(--spacing) auto;
    max-width: min(var(--maximum-img-width), 100%);
    display:block;
    
}

figure {
    margin: var(--spacing) auto;
    break-inside: avoid;
}

/* lightbox */
#gallery img:hover {
  cursor: pointer;
  outline: solid 2px var(--text);
}

#lightbox {
    border: none;
    outline: none;
  padding: 1em;
  background-color: rgba(0,0,0,0);
  overflow: auto;
  max-height: 100vh;
 
}
#lightbox img {
  max-height:88vh;
  max-width:88vw;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.caption {
  padding: 1.4em 2.2em;
  margin-top: 0.4em;
  margin-bottom: 0;
  background-color: var(--bg);
  border: solid 2px;
  border-radius: 10px;
}

::backdrop {
    backdrop-filter: blur(10px) brightness(50%);
}

#gallery:has(~ #lightbox:popover-open) {
    pointer-events: none;
}
/* makes the lightbox work on small screens, like phones */
@media only screen and (min-width: 600px) {
    #lightbox button {
        display: none;
    }
} 
@media only screen and (max-width: 600px) {
    #lightbox button {
        display: block;
        width:30px;
        height:30px;
        margin:10px auto;
    }
} 


/***********************  ANIMATION  ****************************/
@keyframes rotating {
  from {
    -moz-transform: rotate(0deg);
    transform: rotate(0deg);
    
  }
  to {
    -moz-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes scaleLoop {
  0% {
    transform: scale(1) rotate(-20deg);
    -moz-transform: scale(1) rotate(-20deg);
  }
  50% {
    transform: scale(1.1) rotate(-20deg);
    -moz-transform: scale(1.1) rotate(-20deg);
  }
  100% {
    transform: scale(1) rotate(-20deg);
    -moz-transform: scale(1) rotate(-20deg);
  }
}
