/* ---------------------------------------------------------
   GLOBAL VARIABLES
--------------------------------------------------------- */
/* Shadows */
/* Spacing */
/* Transitions */
/* ---------------------------------------------------------
   GLOBAL MIXINS
--------------------------------------------------------- */
/* Minimal reset for consistency */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Selection Highlight */
::-moz-selection {
  background-color: pink;
  color: black;
}
::selection {
  background-color: pink;
  color: black;
}

::-moz-selection {
  background-color: pink;
  color: black;
}

/* Code formatting */
code {
  font-family: Monaco, monospace;
  background: #888;
  padding: 0.1rem 0.3rem 0.2rem;
  border-radius: 0.2rem;
  line-height: 100%;
  letter-spacing: -0.05em;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

/* Selection */
::-moz-selection {
  background-color: pink;
  color: black;
}
::selection,
::-moz-selection {
  background-color: pink;
  color: black;
}

/* WP Post Date Styling */
.wp-block-post-date {
  transform: rotate(-45deg);
  display: inline-block;
  color: grey;
}

.is-layout-flex {
  gap: 0 !important;
}

/* Header variations */
.header-shit {
  line-height: 1.1;
  letter-spacing: 2px;
  font-family: "Freeman", sans-serif;
  font-weight: 800;
  font-size: 36pt;
}

.header-david {
  color: #89cfef;
}

.header-greyout {
  color: #191a1a;
}

.header-love {
  color: pink;
}

.header-travel {
  color: green;
}

/* Remove underlines */
h2.header-link a,
h2.header-link a:hover {
  text-decoration: none;
}

.wp-block-post-title {
  text-transform: lowercase;
}

/* ---------------------------------------------------------
   STANDARD POLAROID BLOCK
--------------------------------------------------------- */
.polaroid {
  background: #fff;
  padding: 8px 8px 38px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.polaroid img {
  border-bottom: 1px solid #ddd;
}
.polaroid .polaroid-caption {
  font-family: "Caveat", cursive;
  letter-spacing: 0.2px;
  line-height: 1.1;
  position: absolute;
  bottom: 10px;
  width: 100%;
  color: #333;
}

/* ---------------------------------------------------------
   GUTENBERG POLAROID GALLERY
--------------------------------------------------------- */
.wp-block-gallery {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center;
  gap: 18px !important;
  padding: 40px 0;
  max-width: 1400px;
  margin: 0 auto 60px;
}

.wp-block-gallery figure.wp-block-image {
  background: #fff;
  padding: 8px 8px 48px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  flex: 1 1 280px;
  max-width: 380px;
}
.wp-block-gallery figure.wp-block-image:nth-of-type(1n) {
  transform: rotate(-1.5deg);
}
.wp-block-gallery figure.wp-block-image:nth-of-type(2n) {
  transform: rotate(1.2deg);
}
.wp-block-gallery figure.wp-block-image:nth-of-type(3n) {
  transform: rotate(-0.8deg);
}
.wp-block-gallery figure.wp-block-image:nth-of-type(4n) {
  transform: rotate(0.7deg);
}
@media (hover: hover) {
  .wp-block-gallery figure.wp-block-image:hover {
    transform: rotate(0deg) translateY(-6px) scale(1.06) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
  }
}
.wp-block-gallery figure.wp-block-image img {
  border-radius: 2px;
  -o-object-fit: cover;
     object-fit: cover;
}
.wp-block-gallery figure.wp-block-image figcaption {
  font-family: "Caveat", cursive;
  letter-spacing: 0.2px;
  line-height: 1.1;
  position: absolute;
  bottom: 8px;
  left: 6px;
  right: 6px;
  width: calc(100% - 12px);
  text-align: center;
  color: #111;
  font-size: clamp(0.8rem, 0.95vw, 1rem);
  word-break: break-word;
}

/* Mobile */
@media (max-width: 768px) {
  .wp-block-gallery figure.wp-block-image {
    padding: 6px 6px 40px !important;
    transform: rotate(0deg);
  }
}
/* ---------------------------------------------------------
   TAPE MENU
--------------------------------------------------------- */
.tape-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px;
  padding: 0;
}
.tape-menu li {
  padding: 15px 25px;
  margin: 20px;
  font-family: "Permanent Marker", cursive;
  font-size: 1.4em;
  text-transform: uppercase;
  color: #333;
  background: rgba(255, 255, 153, 0.8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.tape-menu li:nth-child(1) {
  transform: rotate(-2deg);
}
.tape-menu li:nth-child(2) {
  background: rgba(173, 216, 230, 0.8);
  transform: rotate(3deg);
}
.tape-menu li:nth-child(3) {
  background: rgba(144, 238, 144, 0.8);
  transform: rotate(-1deg);
}
.tape-menu li:nth-child(4) {
  background: rgba(255, 182, 193, 0.8);
  transform: rotate(2deg);
}
.tape-menu li:hover {
  transform: scale(1.05) rotate(0deg);
}
.tape-menu li a {
  color: inherit;
  text-decoration: none;
}

/* ---------------------------------------------------------
   LIGHTBOX
--------------------------------------------------------- */
#lightbox-overlay {
  position: fixed;
  inset: 0;
  width: 80vw;
  max-width: 600px;
  padding: 20px;
  background: #fff;
  z-index: 100000;
  display: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}
#lightbox-overlay img {
  max-width: 100%;
  max-height: 80vh;
  border: 5px solid #fff;
}
#lightbox-overlay #lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
}

/* ---------------------------------------------------------
   RANDOM FLOATING IMAGES
--------------------------------------------------------- */
.random-image-container {
  position: relative;
  height: 600px;
  overflow: visible;
}

.random-image {
  position: absolute;
  transition: transform 0.2s, z-index 0.2s;
  z-index: 1;
}
.random-image img {
  max-width: 200px;
  border: 2px solid #ccc;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.1s;
}
.random-image img:hover {
  transform: scale(1.05);
}
.random-image:hover {
  z-index: 9999;
  transform: scale(1.1);
}

.u-shadow-soft {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18) !important;
}

.u-shadow-med {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

.u-shadow-strong {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45) !important;
}

.u-hand {
  font-family: "Caveat", cursive;
}

.u-hand-2 {
  font-family: "Shadows Into Light", cursive;
}

.u-hand-3 {
  font-family: "Patrick Hand", cursive;
}

.u-bold {
  font-family: "Freeman", sans-serif;
}

@media (hover: hover) {
  .u-hover-lift:hover {
    transform: rotate(0deg) translateY(-6px) scale(1.06) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
  }
}

/* Intro line custom font */
.header-david,
.header-love,
.header-travel,
.header-link {
  font-family: "Freeman", sans-serif !important;
}