
div.photo-card {
  width: 294px;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);

  .photo-container {
    position: relative;
    width: 100%;
    height: 352px;
    cursor: pointer;
    transition: transform 0.2s ease;
    overflow: hidden;
    border-radius: var(--border-radius-lg);

    > img,
    > a > img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    > a.lightbox-trigger {
      display: block;
      width: 100%;
      height: 100%;
    }

    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 0.5s ease;
      border-radius: var(--border-radius-lg);
      pointer-events: none;

      > a {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 35px;
        height: 35px;
        background: var(--color-white);
        border-radius: var(--border-radius-lg);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-10px);
        transition: transform 0.5s ease;
        pointer-events: auto;

        &:hover {
          background: var(--color-bg-tertiary);
        }

        > img {
          width: 20px;
          height: 20px;
        }
      }
    }

    &:hover {
      transform: translateY(-4px);

      .overlay {
        opacity: 1;
        pointer-events: none;

        > a {
          transform: translateY(0);
          pointer-events: auto;
        }
      }
    }
  }

  .photo-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    min-height: 24px;

    .title {
      color: var(--color-black);
      leading-trim: both;
      text-edge: cap;
      font-family: "DM Sans";
      font-size: var(--fs-small);
      font-style: normal;
      font-weight: var(--font-normal);
      line-height: normal;
    }

    .like-container {
      display: flex;
      align-items: center;
      gap: var(--space-4);

      span {
        color: var(--color-black);
        leading-trim: both;
        text-edge: cap;
        font-family: "DM Sans";
        font-size: var(--fs-small);
        font-style: normal;
        font-weight: var(--font-normal);
        line-height: normal;
      }

      button {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-2px);

        img {
          width: 20px;
          height: 17.5px;
        }

        img[data-fusion--photos-target="likedIcon"] {
          display: none;
        }

        img[data-fusion--photos-target="likeIcon"] {
          display: block;
        }
      }
    }
  }

  &[data-fusion--photos-liked-value="true"] {
    .like-container button {
      img[data-fusion--photos-target="likedIcon"] {
        display: block;
      }

      img[data-fusion--photos-target="likeIcon"] {
        display: none;
      }
    }
  }
}
