/* 預設：右下角 */
.photo-credit {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.photo-credit img {
  display: block;
  width: 100%;
  height: 100%;
}
.photo-credit::after {
  content: "Photo by 晴天見設計";
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 10;
  padding: 3px 6px;
  font-size: 10px;
  line-height: 1.2;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.photo-credit:hover::after {
  opacity: 0.5;
}
/* 第二種規則：右上角 */
.photo-credit.photo-credit--top-right::after {
  top: 8px;
  right: 8px;
  bottom: auto;
}