#content {
  width: -webkit-fill-available;
  position: relative;
  padding: 64px;
  background-color: var(--transparent-white-color);
  border: 1px solid var(--text-color);
  border-radius: 16px;

  @media screen and (max-width: 767px) {
    border-top-right-radius: 16px;
    padding: 16px;
  }
}

.page-title-container {
  position: relative;
  display: flex;
  width: 100%;
}

.page-title-container > #title {
  @media screen and (min-width: 933px) {
    position: absolute;
    top: -100px;
  }

  @media screen and (min-width: 768px) and (max-width: 932px) {
    position: absolute;
    top: -100px;
    width: 50%;
  }

  @media screen and (max-width: 767px) {
    width: 55%;
  }
}

.page-title-container > #paint-roller {
  position: absolute;
  z-index: 1;

  
  @media screen and (min-width: 768px) {
    top: -60px;
    left: -20px;
  }

  @media screen and (max-width: 767px) {
    display: none;
  }
}

#content > #gallery {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

.painting {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.frame {
  --s: 10px;
  --w: 250px;
  
  width: round(var(--w),4*var(--s)); 
  aspect-ratio: 1;
  padding: var(--s);
  border: var(--s) solid #0000;
  box-sizing: border-box;
  background: radial-gradient(49% 81% at 45% 47%, #FFFFFF45 0%, #073AFF00 100%),radial-gradient(113% 91% at 17% -2%, #FD83FFFF 1%, #FF000000 99%),radial-gradient(142% 91% at 83% 7%, #FFD38DFF 1%, #FFFFFF94 99%),radial-gradient(142% 91% at -6% 74%, #FF83DEFF 1%, #FF000000 99%),radial-gradient(142% 91% at 111% 84%, #FFFFFFFF 0%, #F700FFFF 100%);
  background-size: 120% 120%;
  background-position: -10px -10px;
  border-radius: calc(3.5*var(--s));
  mask: 
    radial-gradient(calc(sqrt(2)*var(--s)),#000 calc(100% - 1px),#0000),
    conic-gradient(#000 0 0) content-box,
    radial-gradient(calc(sqrt(2)*var(--s)),#0000 100%,#000 calc(100% + 1px)) 
     var(--s) var(--s) padding-box;
  mask-size: calc(var(--s)*4) calc(var(--s)*4);

  display: flex;
  justify-content: center;
  align-items: center;
}

.frame img {
  object-fit: cover;
  border-radius: 8px;
  background-color: var(--transparent-white-color);
  border: 2px solid #463320;
}

@keyframes light-glow {
  0%   { box-shadow: 0 8px 16px #FFFFFF; }
  50%  { box-shadow: 0 8px 24px #FFFFFF; }
}

.painting-light {
  position: absolute;
  top: 0;
  z-index: 1;
}

.painting-light > div {
  position: relative;
  display: flex;
  justify-content: center;
}

.painting-light .connection {
  position: absolute;
  top: -6px;
  z-index: 1;
  width: 6px;
  height: 10px;
  border-radius: 2px;
  background: #463320;
}

.painting-light .light {
  position: absolute;
  top: 0;
  z-index: 1;
  background: #665733;
  background: linear-gradient(0deg,rgba(102, 87, 51, 1) 0%, rgba(70, 51, 32, 1) 60%);
  animation: light-glow 2s linear infinite;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 8px 16px #FFFFFF;
  width: 100px;
  height: 20px;
}

.painting-tag {
  position: absolute;
  z-index: 1;
  bottom: 0;
  background: #463320;
  padding: 6px 0;
  border-bottom: 2px solid #817047;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.screw {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background-color: #817047;
  margin: 0 8px;
}

.painting-tag p {
  color: #dcb968;
  margin: 0;
}

.painting-shadow {
  position: absolute;
  z-index: -1;
  width: 210px;
  height: 200px;
  box-shadow: 0 8px 10px #817047;
}

.painting:hover .painting-shadow {
  box-shadow: 0 8px 18px #817047;
}

/* Decorative images */

#paint-kirby {
  position: fixed;
  z-index: -1;
  bottom: -40px;
  right: -60px;

  @media screen and (max-width: 767px) {
    width: 40%;
    bottom: 0;
    right: 0;
  }
}

#stars1 {
  position: fixed;
  z-index: -1;
  top: -16px;
  left: 16px;

  @media screen and (max-width: 767px) {
    display: none;
  }
}

#stars2 {
  position: fixed;
  z-index: -1;
  bottom: -100px;
  left: 40%;

  @media screen and (max-width: 767px) {
    display: none;
  }
}