.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  /* 半透明黑色遮罩层 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  /* 确保遮罩层在最上面 */
  overflow: hidden;
}

.image-container {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fullscreen-image {
  max-width: 100%;
  max-height: 100%;
}

@media screen and (min-width: 1000px) {
  .fullscreen-image {
    transform: scale(1.15);
  }
}

@media screen and (min-width: 1000px) {
  .fullscreen-image {
    transform: scale(1.15);
  }

  .close-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    border: none;
    color: black;
    /* 按钮文字颜色 */
    text-align: center;

    cursor: pointer;
    z-index: 1;

    height: 76px;
    width: 76px;
    color: #b0b8bf;
    background: url("../img/close.png") no-repeat center;
    background-size: 76px 76px;
  }
}

@media screen and (max-width: 999px) {
  .close-btn {
    position: absolute;
    right: 0.65rem;
    top: -30px;
    border: none;
    color: black;
    text-align: center;
    cursor: pointer;
    z-index: 1;
    height: 45px;
    width: 45px;
    color: #b0b8bf;
    background: url("../img/close.png") no-repeat center;
    background-size: 45px 45px;
  }
}
