@font-face {
  font-family: 'CorbelBoldItalic';
  src: url('fonts/Corbel Bold Italic.ttf') format('truetype');
  src: local('Ø'), url('fonts/Corbel Bold Italic.ttf') format('truetype');
}

@font-face {
  font-family: 'CorbelItalic';
  src: url('fonts/Corbel.ttf') format('truetype');
  src: local('Ø'), url('fonts/Corbel.ttf') format('truetype');
}

#randomgallery {
  box-sizing: border-box;
  margin: 0;
  padding: 50px 20px;
  text-align: center;
  line-height: 1.6;
  font-family: Arial, sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#randomgallery .rg-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

#randomgallery .rg-card {
  --rg-gap: clamp(8px, 1.3vw, 18px);
  --rg-img: clamp(150px, 20vw, 280px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--rg-gap);
}

#randomgallery .rg-hero {
  flex: 0 1 520px;
  max-width: 520px;
}

#randomgallery .rg-phone {
  flex: 0 0 auto;
  width: var(--rg-img);
  height: auto;
  max-height: clamp(240px, 30vw, 440px);
  margin-right: calc(-1 * (var(--rg-img) + var(--rg-gap)) / 3);
  object-fit: contain;
}

#randomgallery .rg-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#randomgallery .rg-icon {
  width: 60px;
  margin: 6px 0;
  border-radius: 20px;
  border: 1px solid #bababa;
}

#randomgallery .rg-title,
#randomgallery .rg-claim {
  background: linear-gradient(90deg, #784cff 0%, #964def 35%, #ff4b4c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#randomgallery .rg-title {
  margin: 0;
  padding: 0 10px;
  font-family: 'CorbelBoldItalic', Arial, sans-serif;
  font-size: 3em;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: none;
  position: relative;
  top: 0.1em;
}

#randomgallery .rg-claim {
  display: inline-block;
  margin: 14px auto 10px;
  font-family: 'CorbelItalic', Arial, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.25em;
  font-weight: normal;
}

#randomgallery .rg-text {
  margin: 10px auto;
  font-family: inherit;
  color: #fff;
}

#randomgallery .rg-badges {
  margin-top: 22px;
  white-space: nowrap;
  container-type: inline-size;
  container-name: rg-badges;
}

#randomgallery .rg-badges a {
  display: inline-block;
}

#randomgallery .rg-badges img {
  height: 55px;
  margin: 6px;
  transition: transform 0.2s ease;
}

#randomgallery .rg-badges a:hover img {
  transform: scale(1.04);
}

@container rg-badges (max-width: 440px) {
  #randomgallery .rg-badges a {
    display: block;
    width: min(100%, 200px);
    margin: 16px auto;
  }
  #randomgallery .rg-badges img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
  }
}

#randomgallery .rg-links {
  margin-top: 32px;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.5);
}

#randomgallery .rg-links a {
  display: inline-block;
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

@media (max-width: 900px) {
  #randomgallery .rg-card {
    flex-direction: column-reverse;
  }
  #randomgallery .rg-hero {
    flex: 0 0 auto;
    width: 100%;
  }
  #randomgallery .rg-phone {
    width: auto;
    height: clamp(200px, 60vw, 320px);
    max-height: none;
    max-width: 100%;
    margin-right: 0;
  }
}

@media (max-width: 520px) {
  #randomgallery .rg-title {
    font-size: 2em;
  }
}

body.rg-page {
  margin: 0;
  background: #000;
}

body.rg-page #randomgallery {
  min-height: 100vh;
  min-height: 100svh;
}
