/* IMPROVEMENT: Better organization and documentation of styles */

/* Container styles */
.photowithnotes {
    position: relative;
    margin: 0;
    padding: 0;
    max-width: 100%;
    display: block;
}

/* Image styles */
.photowithnotes img {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

/* Note box styles */
.jjflickrnotebox {
    position: absolute;
    border: solid 1px rgba(255, 255, 255, 0.5);
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

/* Note text styles */
.jjnotetext {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    width: max-content;
    max-width: 200px;
    background: white;
    padding: 4px 8px;
    border-radius: 3px;
    font: normal 0.875rem/1.4 Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: opacity 0.2s ease-in-out;
}

/* Hover effects */
.jjflickrnotebox:hover .jjnotetext {
    opacity: 1;
}

/* Touch device styles */
@media (hover: none) {
    .jjflickrnotebox {
        border: solid 1px rgba(255, 255, 255, 0.8);
        box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    .hover_effect .jjflickrnotebox .jjnotetext {
        opacity: 1;
    }
}

/* Error message styles */
.flickrnotes-error {
    padding: 1rem;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 1rem 0;
}
