@font-face {
    font-family: "Ubuntu";
    src: url("https://ehsanrf.ir/cv/font/Ubuntu.eot");
    src: url("https://ehsanrf.ir/cv/font/Ubuntu.eot?#iefix")format("embedded-opentype"),
    url("https://ehsanrf.ir/cv/font/Ubuntu.woff2")format("woff2"),
    url("https://ehsanrf.ir/cv/font/Ubuntu.woff")format("woff"),
    url("https://ehsanrf.ir/cv/font/Ubuntu.ttf")format("truetype"),
    url("https://ehsanrf.ir/cv/font/Ubuntu.svg#Ubuntu")format("svg");
}





:root {
  --adjust-size: 10px; /* li box-shadow total-sizeの分 */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  background: #e0f7fa;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
  scroll-behavior: smooth;
}
html {
  /* Adjust font size */
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  /* Font varient */
  font-variant-ligatures: none;
  -webkit-font-variant-ligatures: none;
  /* Smoothing */
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
  text-shadow: rgba(0, 0, 0, 0.01) 0 0 1px;
}
body {
  position: relative;
  margin: 0;
  color: black;
  font-family: "Ubuntu", sans-serif;
  overflow-x: hidden;
  /*
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
*/
}
h1 {
  display: none;
  padding: 0 0.5rem;
  text-align: center;
}
h2 {
  text-align: center;
  /*
  font-size: max(20px, 2vw);
*/
  font-size: 1rem;
  font-weight: 400;
  line-height: 0.8;
  margin-top: 0.3rem;
  z-index: 1;
}
h3 {
  display: none;
  z-index: 1;
}
p {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 0.3rem;
  line-height: 1;
  z-index: 1;
}
a {
  color: crimson;
  text-decoration: none;
}
img,
iframe {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}
iframe {
  transform: translate3d(0, 0, 0);
}
main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100vw;
}
#masonry {
  position: relative;
  left: calc(-1 * var(--adjust-size));
  column-count: 4;
  column-gap: 1rem;
  column-width: auto;
  margin: 0.8rem;

  /* antialiasing : Stop blurring or jagged edges */
  -webkit-perspective: 0;
  perspective: 0;
}

/*
#masonry li:hover {
  
保留中
  animation-play-state: paused;
  
  animation: swingEnd 1.5s ease-in-out 0s 1 normal forwards running ;
}
*/
#masonry li:nth-child(7n) {
  --duration: 1s;
  --pin-color: crimson;
}
#masonry li:nth-child(7n + 1) {
  --duration: 1.8s;
  --pin-color: hotpink;
}
#masonry li:nth-child(7n + 2) {
  --duration: 1.3s;
  --pin-color: magenta;
}
#masonry li:nth-child(7n + 3) {
  --duration: 1.5s;
  --pin-color: orangered;
}
#masonry li:nth-child(7n + 4) {
  --duration: 1.1s;
  --pin-color: darkorchid;
}
#masonry li:nth-child(7n + 5) {
  --duration: 1.6s;
  --pin-color: deeppink;
}
#masonry li:nth-child(7n + 6) {
  --duration: 1.2s;
  --pin-color: mediumvioletred;
}

#masonry li:nth-child(3n) {
  --angle: 3deg;
}
#masonry li:nth-child(3n + 1) {
  --angle: -3.3deg;
}
#masonry li:nth-child(3n + 2) {
  --angle: 2.4deg;
}

#masonry li:nth-child(odd) {
  --direction: alternate;
}
#masonry li:nth-child(even) {
  --direction: alternate-reverse;
}

#masonry li {
  --angle: 3deg;
  --count: 5; /*swing iteration-count*/
  --duration: 1s;
  --delay: calc(-0.5 * var(--duration));
  --direction: alternate;
  --pin-color: red;

  position: relative;
  display: inline-block;
  margin: var(--adjust-size);
  padding: 0.5rem;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.5);
  width: 100%;
  height: auto;
  background: floralwhite;
  transform-origin: center 0.22rem;
  /*
  transform: rotate3d(0, 0, 1, 0deg);
*/
  will-change: transform;

  break-inside: avoid;
  overflow: hidden;

  /* antialiasing : Stop blurring or jagged edges */
  /*
  outline: 1px solid transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 0;
*/
  /* end */

  z-index: 1;

  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
#masonry.active li {
  animation-duration: var(--duration), 1.5s;
  animation-delay: var(--delay),
    calc(var(--delay) + var(--duration) * var(--count));
  animation-timing-function: ease-in-out;
  animation-iteration-count: var(--count), 1; /*infinite;*/
  animation-direction: var(--direction), normal; /* alternate; */
  animation-fill-mode: both;
  animation-name: swing, swingEnd;
}
#masonry li:after {
  position: absolute;
  top: 0.22rem;
  left: 50%;
  width: 0.6rem;
  height: 0.6rem;
  content: "";
  background: var(--pin-color);
  border-radius: 50%;
  box-shadow: -0.1rem -0.1rem 0.3rem 0.02rem rgba(0, 0, 0, 0.5) inset;
  filter: drop-shadow(0.3rem 0.15rem 0.2rem rgba(0, 0, 0, 0.5));
  transform: translateZ(0);
  z-index: 2;
}
#masonry li.spanning {
  /* 保留中
  column-span: all;
*/
  background: #ffffff;
}
#masonry li.spanning b {
  display: block;
}
@keyframes swing {
  0% {
    transform: rotate3d(0, 0, 1, calc(-1 * var(--angle)));
  }
  100% {
    transform: rotate3d(0, 0, 1, var(--angle));
  }
}
@keyframes swingEnd {
  to {
    transform: rotate3d(0, 0, 1, 0deg);
  }
}
li div {
  position: relative;
  z-index: 1;
}
li div * {
  /* antialiasing */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 0;
  transform: translateX(0);
}
li img,
li iframe {
  aspect-ratio: 16 / 9;
  max-width: 100%;
  object-fit: cover;
  display: block;
  background: pink;
  z-index: 1;

  /* outline: 1px solid transparent;*/ /* antialiasing : Stop blurring or jagged edges */
}
.date {
  display: inline-block;
  font-size: 0.7rem;
  margin: 0 0 0 0.5rem;
}
#profile_img {
  display: block;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 80px;
  object-fit: contain;
  border-radius: 50%;
  margin: auto;
}
.emoji {
  font-family: "Noto Emoji", sans-serif;
  font-size: 0.8rem;
  margin: 0 0.3rem;
}
#info {
  position: relative;
  text-align: center;
  z-index: 1;
}
#info a {
  font-size: 1.3rem;
}
@media only screen and (max-width: 320px) {
  #masonry {
    column-count: 1;
    column-gap: 0.2rem;
  }
}
@media only screen and (min-width: 321px) and (max-width: 520px) {
  #masonry {
    column-count: 2;
    column-gap: 0.5rem;
  }
}
@media only screen and (min-width: 521px) and (max-width: 900px) {
  #masonry {
    column-count: 3;
    column-gap: 0.8rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .date {
    font-size: 1rem;
  }
}
@media only screen and (min-width: 901px) and (max-width: 1200px) {
  #masonry {
    column-count: 4;
  }
}
@media only screen and (min-width: 1201px) {
  #masonry {
    column-count: 5;
  }
}