/* Image Adjustment Utilities */
/* Add these classes to images that need adjustments */

/* Position adjustments - controls which part of the image shows when cropped */
.img-position-top { object-position: center top !important; }
.img-position-bottom { object-position: center bottom !important; }
.img-position-left { object-position: left center !important; }
.img-position-right { object-position: right center !important; }
.img-position-center { object-position: center !important; }

/* Fine-tune positioning (use percentages) */
.img-position-top-left { object-position: 25% 25% !important; }
.img-position-top-right { object-position: 75% 25% !important; }
.img-position-bottom-left { object-position: 25% 75% !important; }
.img-position-bottom-right { object-position: 75% 75% !important; }

/* Image quality enhancements */
.img-enhance-contrast { filter: contrast(1.1); }
.img-enhance-brightness { filter: brightness(1.1); }
.img-enhance-saturation { filter: saturate(1.2); }
.img-enhance-all { filter: contrast(1.1) brightness(1.05) saturate(1.1); }

/* Fix dark images */
.img-brighten-light { filter: brightness(1.15); }
.img-brighten-medium { filter: brightness(1.3); }
.img-brighten-heavy { filter: brightness(1.5); }

/* Fix washed out images */
.img-darken-light { filter: brightness(0.95); }
.img-darken-medium { filter: brightness(0.85); }

/* Fix dull colors */
.img-vibrant-light { filter: saturate(1.3); }
.img-vibrant-medium { filter: saturate(1.5); }
.img-vibrant-heavy { filter: saturate(1.8); }

/* Reduce oversaturation */
.img-desaturate-light { filter: saturate(0.8); }
.img-desaturate-medium { filter: saturate(0.6); }

/* Sharpen blurry images slightly */
.img-sharpen { filter: contrast(1.15) brightness(1.05); }

/* Fix color temperature */
.img-warm { filter: sepia(0.15) saturate(1.2); } /* Add warmth */
.img-cool { filter: hue-rotate(10deg) saturate(0.9); } /* Add coolness */

/* Professional combinations */
.img-professional { filter: contrast(1.08) brightness(1.02) saturate(1.05); }
.img-vivid { filter: contrast(1.15) saturate(1.3) brightness(1.05); }
.img-soft { filter: brightness(1.1) saturate(0.9) contrast(0.95); }
.img-dramatic { filter: contrast(1.25) brightness(0.95) saturate(1.1); }

/* Overlay gradients for better text readability */
.img-overlay-dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    border-radius: inherit;
}

.img-overlay-light::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.6));
    border-radius: inherit;
}

/* Fix aspect ratio issues */
.img-fit-contain { object-fit: contain !important; }
.img-fit-cover { object-fit: cover !important; }
.img-fit-fill { object-fit: fill !important; }
.img-fit-none { object-fit: none !important; }

/* Force fill container - eliminates white space */
.img-fill-container {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Stretch image to fill (may distort but no white space) */
.img-stretch-fill {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
}

/* Zoom image to fill (slightly crops but fills space) */
.img-zoom-fill {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: scale(1.05);
}
