/* ResponsiveFramedFloatingImage styles */
.rfimg-frame {
    display: inline-block;
    margin: 10px 0px;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 5px;
}

.rfimg-frame--left {
    float: left;
    margin-right: 15px;
}

.rfimg-frame--right {
    float: right;
    margin-left: 15px;
}

.rfimg-placeholder {
    width: 200px;
    height: 200px;
    background: #eee;
    border: 1px dashed #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Prevent frame from overflowing in general */
.rfimg-frame {
  max-width: 100%;
  box-sizing: border-box;
}

/* Stack + scale on small screens */
@media (max-width: 780px) {
  .rfimg-frame,
  .rfimg-frame--left,
  .rfimg-frame--right {
    float: none;
    display: block;
    width: 100%;
    margin: 10px 0; /* remove side gaps when stacked */
  }

  .rfimg-frame img {
    width: 100% !important;  /* fill container */
    height: auto !important; /* keep aspect ratio */
    display: block;
  }
}
